Class BabelTokenWord
java.lang.Object
it.uniroma1.lcl.babelnet.data.BabelTokenWord
- All Implemented Interfaces:
Serializable, Comparable<BabelTokenWord>
Represents the token unit which can be used to build sentences.
- Author:
- vannella
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBabelTokenWord(int s, int e, String lemma) Creates a new instance of aBabelTokenWord -
Method Summary
-
Constructor Details
-
BabelTokenWord
Creates a new instance of aBabelTokenWord- Parameters:
s- start position within the sentencee- end position within the sentencelemma- the lemma of the inflected form in the string range
-
-
Method Details
-
getLemma
Gets the lemma of thisBabelTokenWord.- Returns:
- the lemma of this
BabelTokenWord.
-
getStart
public int getStart()Gets the start index of the token- Returns:
- the first integer
-
getEnd
public int getEnd()Gets the end index of the token- Returns:
- the second integer
-
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<BabelTokenWord>
-
equals
-
hashCode
-