Package it.uniroma1.lcl.babelnet.data
Class BabelExample
- java.lang.Object
-
- it.uniroma1.lcl.babelnet.data.BabelExample
-
-
Constructor Summary
Constructors Constructor Description BabelExample(BabelSenseSource source, String sourceSense, it.uniroma1.lcl.jlt.util.Language language, String example)
Creates a new instance of aBabelExample
BabelExample(BabelSenseSource source, String sourceSense, it.uniroma1.lcl.jlt.util.Language language, String example, Set<BabelTokenWord> tokens)
Creates a new instance of aBabelExample
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getExample()
Returns the example sentence.it.uniroma1.lcl.jlt.util.Language
getLanguage()
The language for this exampleBabelLicense
getLicense()
Gets the license for this Babel exampleBabelSenseSource
getSource()
The region where the concept for this example lies.String
getSourceSense()
The sense from which this example is takenSet<BabelTokenWord>
getTokensWordExample()
Gets a list ofBabelTokenWord
s.String
toString()
-
-
-
Constructor Detail
-
BabelExample
public BabelExample(BabelSenseSource source, String sourceSense, it.uniroma1.lcl.jlt.util.Language language, String example)
Creates a new instance of aBabelExample
- Parameters:
source
- the gloss sourcesourceSense
- the sense the gloss defineslanguage
- the language the gloss is written inexample
- the example string
-
BabelExample
public BabelExample(BabelSenseSource source, String sourceSense, it.uniroma1.lcl.jlt.util.Language language, String example, Set<BabelTokenWord> tokens)
Creates a new instance of aBabelExample
- Parameters:
source
- the gloss sourcesourceSense
- the sense the gloss defineslanguage
- the language the gloss is written inexample
- the example stringtokens
- the tokens that belong to the gloss
-
-
Method Detail
-
getSource
public BabelSenseSource getSource()
The region where the concept for this example lies.- Returns:
- the region where the example concept lies
-
getSourceSense
public String getSourceSense()
The sense from which this example is taken- Returns:
- the corresponding sense for the example
-
getLanguage
public it.uniroma1.lcl.jlt.util.Language getLanguage()
The language for this example- Returns:
- the example language
-
getExample
public String getExample()
Returns the example sentence.- Returns:
- the example content as a String.
-
getLicense
public BabelLicense getLicense()
Gets the license for this Babel example- Returns:
- the license
-
getTokensWordExample
public Set<BabelTokenWord> getTokensWordExample()
Gets a list ofBabelTokenWord
s. Each BabelTokenWord corresponds to the lemma that appears in this Babel example and for which it is an usage example.- Returns:
- the list of lemmas in this Babel example.
-
-