Class BabelTokenId
java.lang.Object
it.uniroma1.lcl.babelnet.data.BabelTokenId
- All Implemented Interfaces:
Serializable, Comparable<BabelTokenId>
Represents the association between the word that appears in a
Babel gloss and the
BabelSynsetID that identifies the lemma in BabelNet.- Author:
- vannella
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBabelTokenId(int s, int e, BabelSynsetID id, String word) Creates a new instance of aBabelTokenId -
Method Summary
-
Constructor Details
-
BabelTokenId
Creates a new instance of aBabelTokenId- Parameters:
s- the start positione- the end positionid- the id of theBabelSynsetword- the word being annotated
-
-
Method Details
-
getID
-
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
-
getWord
-
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<BabelTokenId>
-
equals
-
hashCode
-