Class BabelSense.Builder
java.lang.Object
it.uniroma1.lcl.babelnet.BabelSense.Builder
- Enclosing class:
BabelSense
-
Constructor Summary
ConstructorsConstructorDescriptionBuilder(String lemma, String simpleLemma, it.uniroma1.lcl.jlt.util.Language language, it.uniroma1.lcl.jlt.util.POS pos, BabelSenseSource source, String sensekey, BabelSynset synset) Builder constructor -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds theBabelSensekeySense()Sets the feature of being a key sense (false if not called)keySense(boolean bKeySense) Sets the feature of being or not a key sense (false if not called)phonetics(BabelSensePhonetics pronunciations) Sets the phonetic informationSets the sense tags from given tags.tag(Collection<? extends Tag> tags) Sets the sense tags from a given collection of tags.translationInfo(String translationInfo) Deprecated.To be removed in the next API releasewordNetOffset(String wordNetOffset) Sets the WordNet offset for the (WordNet) sensewordNetSenseNumber(Integer wordNetSenseNumber) Sets the WordNet sense number for the (WordNet) sensewordNetSynsetPosition(Integer wordNetSynsetPosition) Sets the WordNet synset position for the (WordNet) senseSets the YAGO URL
-
Constructor Details
-
Builder
public Builder(String lemma, String simpleLemma, it.uniroma1.lcl.jlt.util.Language language, it.uniroma1.lcl.jlt.util.POS pos, BabelSenseSource source, String sensekey, BabelSynset synset) Builder constructor- Parameters:
lemma- the sense lemmalanguage- the sense languagepos- the sense part of speechsource- the sense sourcesensekey- the sense keysynset- the synset the sense belongs to
-
-
Method Details
-
keySense
Sets the feature of being or not a key sense (false if not called)- Parameters:
bKeySense- true if the sense is key, false otherwise- Returns:
- the
BabelSense.Builder
-
keySense
Sets the feature of being a key sense (false if not called)- Returns:
- the
BabelSense.Builder
-
wordNetOffset
Sets the WordNet offset for the (WordNet) sense- Parameters:
wordNetOffset- the WordNet offset position for the (WordNet) sense- Returns:
- the
BabelSense.Builder
-
wordNetSynsetPosition
Sets the WordNet synset position for the (WordNet) sense- Parameters:
wordNetSynsetPosition- the WordNet synset position for the (WordNet) sense- Returns:
- the
BabelSense.Builder
-
wordNetSenseNumber
Sets the WordNet sense number for the (WordNet) sense- Parameters:
wordNetSenseNumber- the WordNet sense number for the (WordNet) sense- Returns:
- the
BabelSense.Builder
-
translationInfo
Deprecated.To be removed in the next API releaseSets the translation information- Parameters:
translationInfo- the translation information for the sense- Returns:
- the
BabelSense.Builder
-
YAGOURL
Sets the YAGO URL- Parameters:
YAGOURL- the YAGO URL for the sense- Returns:
- the
BabelSense.Builder
-
phonetics
Sets the phonetic information- Parameters:
pronunciations- phonetic information- Returns:
- the
BabelSense.Builder
-
tag
Sets the sense tags from a given collection of tags.- Parameters:
tags- tags for this sense- Returns:
- the
BabelSense.Builder
-
tag
Sets the sense tags from given tags.- Parameters:
tags- tags for this sense- Returns:
- the
BabelSense.Builder
-
build
-