public abstract class Chunk extends Object implements Serializable, TokenGroup
Tokens. The annotation could be SN,
SN or Other.| Constructor and Description |
|---|
Chunk() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getFirstToken() |
Token |
getMainToken() |
MorphologicalTag |
getMorphologicalTag() |
int |
getRelativeHeadIndex() |
SyntacticTag |
getSyntacticTag() |
List<Token> |
getTokens()
Gets the Tokens of this sentence
|
String |
getType() |
int |
hashCode() |
void |
setFirstToken(int firstToken) |
void |
setMorphologicalTag(MorphologicalTag morphologicalTag) |
void |
setType(String type) |
abstract String |
toPlainText()
Gets the representation of the sentence as a plain text.
|
String |
toString() |
public abstract String toPlainText()
public List<Token> getTokens()
getTokens in interface TokenGrouppublic int getFirstToken()
public void setFirstToken(int firstToken)
public MorphologicalTag getMorphologicalTag()
public void setMorphologicalTag(MorphologicalTag morphologicalTag)
morphologicalTag - the morphologicalTag to setpublic SyntacticTag getSyntacticTag()
public int getRelativeHeadIndex()
public Token getMainToken()
public String getType()
public void setType(String type)
Copyright © 2012–2017 CoGrOO. All rights reserved.