Package it.uniroma1.lcl.babelnet.data
Class BabelGloss
- java.lang.Object
-
- it.uniroma1.lcl.babelnet.data.BabelGloss
-
-
Constructor Summary
Constructors Constructor Description BabelGloss(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
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetGloss()Returns the glossit.uniroma1.lcl.jlt.util.LanguagegetLanguage()The language for this glossBabelLicensegetLicense()Returns theBabelLicensefor this glossBabelSenseSourcegetSource()The region where the concept for this gloss lies.intgetSourceSense()The WordNet or Wikipedia sense from which this gloss is takenSet<BabelTokenId>getTokenIds()Returns the list ofBabelTokenIds.Set<BabelTokenId>getTokensId()Deprecated.usegetTokenIds()instead.StringtoString()
-
-
-
Constructor Detail
-
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 Detail
-
getSource
public BabelSenseSource 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
-
getTokensId
public Set<BabelTokenId> 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
public Set<BabelTokenId> 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
public BabelLicense getLicense()
Returns theBabelLicensefor this gloss- Returns:
- the
BabelLicensefor this
-
-