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 license for this Babel 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
- sourceSense
- language
- gloss
- public BabelGloss(BabelSenseSource source, String sourceSense, it.uniroma1.lcl.jlt.util.Language language, String gloss)
BabelGloss
source
- sourceSense
- language
- gloss
- public BabelSenseSource getSource()
public String getSourceSense()
public it.uniroma1.lcl.jlt.util.Language getLanguage()
public String getGloss()
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.public BabelLicense getLicense()
Copyright © 2016. All rights reserved.