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 aBabelGloss
BabelGloss(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 String
getGloss()
Returns the glossit.uniroma1.lcl.jlt.util.Language
getLanguage()
The language for this glossBabelLicense
getLicense()
Returns theBabelLicense
for this glossBabelSenseSource
getSource()
The region where the concept for this gloss lies.int
getSourceSense()
The WordNet or Wikipedia sense from which this gloss is takenSet<BabelTokenId>
getTokenIds()
Returns the list ofBabelTokenId
s.Set<BabelTokenId>
getTokensId()
Deprecated.usegetTokenIds()
instead.String
toString()
-
-
-
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:Gloss
The 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:Gloss
The language for this gloss- Specified by:
getLanguage
in interfaceGloss
- Returns:
- the gloss language
-
getTokensId
public Set<BabelTokenId> getTokensId()
Deprecated.usegetTokenIds()
instead.Returns the list ofBabelTokenId
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.- Returns:
- the BabelTokenIds for this gloss
-
getTokenIds
public Set<BabelTokenId> getTokenIds()
Returns the list ofBabelTokenId
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.- Returns:
- the
BabelTokenId
s for this gloss
-
getLicense
public BabelLicense getLicense()
Returns theBabelLicense
for this gloss- Returns:
- the
BabelLicense
for this
-
-