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)
BabelTokenId
s
- the start positione
- the end positionid
- the id of the BabelSynset
word
- 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–2018. All rights reserved.