Constructor and Description |
---|
BabelGloss(BabelSenseSource source,
String sourceSense,
it.uniroma1.lcl.jlt.util.Language language,
String gloss)
Creates a new instance of a
BabelGloss |
BabelGloss(BabelSenseSource source,
String 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.
|
String |
getSourceSense()
The WordNet or Wikipedia sense from which this gloss is taken
|
Set<BabelTokenId> |
getTokenIds()
Returns the list of
BabelTokenId s. |
Set<BabelTokenId> |
getTokensId()
Deprecated.
use
getTokenIds() instead. |
String |
toString() |
public BabelGloss(BabelSenseSource source, String sourceSense, it.uniroma1.lcl.jlt.util.Language language, String gloss, Set<BabelTokenId> tokens)
BabelGloss
source
- 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, String sourceSense, it.uniroma1.lcl.jlt.util.Language language, String gloss)
BabelGloss
source
- the gloss sourcesourceSense
- the sense the gloss defineslanguage
- the language the gloss is written ingloss
- the gloss stringpublic BabelSenseSource getSource()
Gloss
public String getSourceSense()
public it.uniroma1.lcl.jlt.util.Language getLanguage()
Gloss
getLanguage
in interface Gloss
public Set<BabelTokenId> getTokensId()
getTokenIds()
instead.BabelTokenId
s. 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()
BabelTokenId
s. Each BabelTokenId is the association between the lemma that appears in this
Babel gloss, and the BabelSynset id that identifies the lemma in BabelNet.BabelTokenId
s for this glosspublic BabelLicense getLicense()
BabelLicense
for this glossBabelLicense
for thisCopyright © 2016–2018. All rights reserved.