public class BabelTokenId extends Object implements Comparable<BabelTokenId>, Serializable
BabelSynsetID that identifies the lemma in BabelNet.| Constructor and Description |
|---|
BabelTokenId(int s,
int e,
BabelSynsetID id,
String word)
Creates a new instance of a
BabelTokenId |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(BabelTokenId f) |
boolean |
equals(Object o) |
int |
getEnd()
Gets the end index of the token
|
BabelSynsetID |
getID()
Returns the BabelSynset id
|
int |
getStart()
Gets the start index of the token
|
String |
getWord()
Gets the word of this
BabelTokenId. |
int |
hashCode() |
String |
toString() |
public BabelTokenId(int s,
int e,
BabelSynsetID id,
String word)
BabelTokenIds - the start positione - the end positionid - the id of the BabelSynsetword - the word being annotatedpublic BabelSynsetID getID()
public int getStart()
public int getEnd()
public String getWord()
BabelTokenId.BabelTokenId.public int compareTo(BabelTokenId f)
compareTo in interface Comparable<BabelTokenId>Copyright © 2016–2022. All rights reserved.