| Constructor and Description |
|---|
BabelGloss(BabelSenseSource source,
int sourceSense,
it.uniroma1.lcl.jlt.util.Language language,
String gloss)
Creates a new instance of a
BabelGloss |
BabelGloss(BabelSenseSource source,
int sourceSense,
it.uniroma1.lcl.jlt.util.Language language,
String gloss,
Set<BabelTokenId> tokens)
Creates a new instance of a
BabelGloss |
| Modifier and Type | Method and Description |
|---|---|
String |
getGloss()
Returns the gloss
|
it.uniroma1.lcl.jlt.util.Language |
getLanguage()
The language for this gloss
|
BabelLicense |
getLicense()
Returns the
BabelLicense for this gloss |
BabelSenseSource |
getSource()
The region where the concept for this gloss lies.
|
int |
getSourceSense()
The WordNet or Wikipedia sense from which this gloss is taken
|
Set<BabelTokenId> |
getTokenIds()
Returns the list of
BabelTokenIds. |
Set<BabelTokenId> |
getTokensId()
Deprecated.
use
getTokenIds() instead. |
String |
toString() |
public BabelGloss(BabelSenseSource source, int sourceSense, it.uniroma1.lcl.jlt.util.Language language, String gloss, Set<BabelTokenId> tokens)
BabelGlosssource - the gloss sourcesourceSense - the sense the gloss defineslanguage - the language the gloss is written ingloss - the gloss stringtokens - the tokens that belong to the glosspublic BabelGloss(BabelSenseSource source, int sourceSense, it.uniroma1.lcl.jlt.util.Language language, String gloss)
BabelGlosssource - the gloss sourcesourceSense - the sense the gloss defineslanguage - the language the gloss is written ingloss - the gloss stringpublic BabelSenseSource getSource()
Glosspublic int getSourceSense()
public it.uniroma1.lcl.jlt.util.Language getLanguage()
GlossgetLanguage in interface Glosspublic Set<BabelTokenId> getTokensId()
getTokenIds() instead.BabelTokenIds. Each BabelTokenId is the association between the lemma that appears in this
Babel gloss, and the BabelSynset id that identifies the lemma in BabelNet.public Set<BabelTokenId> getTokenIds()
BabelTokenIds. Each BabelTokenId is the association between the lemma that appears in this
Babel gloss, and the BabelSynset id that identifies the lemma in BabelNet.BabelTokenIds for this glosspublic BabelLicense getLicense()
BabelLicense for this glossBabelLicense for thisCopyright © 2016–2022. All rights reserved.