public final class AnalyzedToken extends Object
Constructor and Description |
---|
AnalyzedToken(String token,
String posTag,
String lemma) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getLemma() |
String |
getPOSTag() |
String |
getToken() |
int |
hashCode() |
boolean |
hasNoTag() |
boolean |
isWhitespaceBefore() |
boolean |
matches(AnalyzedToken an) |
void |
setNoPOSTag(boolean noTag)
If other readings of the token have real POS tags,
you can set the flag here that they do, so that the
test in the Element class would be correct for all
cases.
|
void |
setWhitespaceBefore(boolean whitespaceBefore) |
String |
toString() |
@NotNull public String getToken()
@Nullable public String getPOSTag()
null
@Nullable public String getLemma()
null
public void setWhitespaceBefore(boolean whitespaceBefore)
public boolean isWhitespaceBefore()
public boolean matches(AnalyzedToken an)
an
- AnalyzedToken to testpublic boolean hasNoTag()
public void setNoPOSTag(boolean noTag)