Class BabelExample
java.lang.Object
it.uniroma1.lcl.babelnet.data.BabelExample
- All Implemented Interfaces:
Example
-
Constructor Summary
ConstructorsConstructorDescriptionBabelExample(BabelSenseSource source, String sourceSense, it.uniroma1.lcl.jlt.util.Language language, String example) Creates a new instance of aBabelExampleBabelExample(BabelSenseSource source, String sourceSense, it.uniroma1.lcl.jlt.util.Language language, String example, Set<BabelTokenWord> tokens) Creates a new instance of aBabelExample -
Method Summary
Modifier and TypeMethodDescriptionReturns the example sentence.it.uniroma1.lcl.jlt.util.LanguageThe language for this exampleGets the license for this Babel exampleThe region where the concept for this example lies.The sense from which this example is takenGets a list ofBabelTokenWords.toString()
-
Constructor Details
-
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 Details
-
getSource
The region where the concept for this example lies.- Returns:
- the region where the example concept lies
-
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
-
getLicense
-
getTokensWordExample
Gets a list ofBabelTokenWords. 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.
-
toString
-