Class BabelGloss
java.lang.Object
it.uniroma1.lcl.babelnet.data.BabelGloss
- All Implemented Interfaces:
Gloss
-
Constructor Summary
ConstructorsConstructorDescriptionBabelGloss(BabelSenseSource source, int sourceSense, it.uniroma1.lcl.jlt.util.Language language, String gloss) Creates a new instance of aBabelGlossBabelGloss(BabelSenseSource source, int sourceSense, it.uniroma1.lcl.jlt.util.Language language, String gloss, Set<BabelTokenId> tokens) Creates a new instance of aBabelGloss -
Method Summary
Modifier and TypeMethodDescriptiongetGloss()Returns the glossit.uniroma1.lcl.jlt.util.LanguageThe language for this glossReturns theBabelLicensefor this glossThe region where the concept for this gloss lies.intThe WordNet or Wikipedia sense from which this gloss is takenReturns the list ofBabelTokenIds.Deprecated.toString()
-
Constructor Details
-
BabelGloss
public BabelGloss(BabelSenseSource source, int sourceSense, it.uniroma1.lcl.jlt.util.Language language, String gloss, Set<BabelTokenId> tokens) Creates a new instance of aBabelGloss- Parameters:
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 gloss
-
BabelGloss
public BabelGloss(BabelSenseSource source, int sourceSense, it.uniroma1.lcl.jlt.util.Language language, String gloss) Creates a new instance of aBabelGloss- Parameters:
source- the gloss sourcesourceSense- the sense the gloss defineslanguage- the language the gloss is written ingloss- the gloss string
-
-
Method Details
-
getSource
Description copied from interface:GlossThe region where the concept for this gloss lies. -
getSourceSense
public int getSourceSense()The WordNet or Wikipedia sense from which this gloss is taken- Returns:
- the corresponding sense for the gloss
-
getLanguage
public it.uniroma1.lcl.jlt.util.Language getLanguage()Description copied from interface:GlossThe language for this gloss- Specified by:
getLanguagein interfaceGloss- Returns:
- the gloss language
-
getGloss
-
getTokensId
Deprecated.usegetTokenIds()instead.Returns the list ofBabelTokenIds. Each BabelTokenId is the association between the lemma that appears in this Babel gloss, and the BabelSynset id that identifies the lemma in BabelNet.- Returns:
- the BabelTokenIds for this gloss
-
getTokenIds
Returns the list ofBabelTokenIds. Each BabelTokenId is the association between the lemma that appears in this Babel gloss, and the BabelSynset id that identifies the lemma in BabelNet.- Returns:
- the
BabelTokenIds for this gloss
-
getLicense
Returns theBabelLicensefor this gloss- Returns:
- the
BabelLicensefor this
-
toString
-
getTokenIds()instead.