public class BabelTokenWord extends Object implements Comparable<BabelTokenWord>, Serializable
| Constructor and Description |
|---|
BabelTokenWord(int s,
int e,
String lemma)
Creates a new instance of a
BabelTokenWord |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(BabelTokenWord f) |
boolean |
equals(Object o) |
int |
getEnd()
Gets the end index of the token
|
String |
getLemma()
Gets the lemma of this
BabelTokenWord. |
int |
getStart()
Gets the start index of the token
|
int |
hashCode() |
String |
toString() |
public BabelTokenWord(int s,
int e,
String lemma)
BabelTokenWords - start position within the sentencee - end position within the sentencelemma - the lemma of the inflected form in the string rangepublic String getLemma()
BabelTokenWord.BabelTokenWord.public int getStart()
public int getEnd()
public int compareTo(BabelTokenWord f)
compareTo in interface Comparable<BabelTokenWord>Copyright © 2016–2022. All rights reserved.