public static class BabelSense.Builder extends Object
BabelSense
.Constructor and Description |
---|
Builder(String lemma,
it.uniroma1.lcl.jlt.util.Language language,
com.babelscape.util.POS pos,
BabelSenseSource source,
String sensekey,
BabelSynset synset)
Builder constructor
|
Modifier and Type | Method and Description |
---|---|
BabelSense |
build()
Builds the
BabelSense |
BabelSense.Builder |
keySense()
Sets the feature of being a key sense (false if not called)
|
BabelSense.Builder |
keySense(boolean bKeySense)
Sets the feature of being or not a key sense (false if not called)
|
BabelSense.Builder |
phonetics(BabelSensePhonetics pronunciations)
Sets the phonetic information
|
BabelSense.Builder |
translationInfo(String translationInfo)
Deprecated.
To be removed in the next API release
|
BabelSense.Builder |
wordNetOffset(String wordNetOffset)
Sets the WordNet offset for the (WordNet) sense
|
BabelSense.Builder |
wordNetSenseNumber(Integer wordNetSenseNumber)
Sets the WordNet sense number for the (WordNet) sense
|
BabelSense.Builder |
wordNetSynsetPosition(Integer wordNetSynsetPosition)
Sets the WordNet synset position for the (WordNet) sense
|
BabelSense.Builder |
YAGOURL(String YAGOURL)
Sets the YAGO URL
|
public Builder(String lemma, it.uniroma1.lcl.jlt.util.Language language, com.babelscape.util.POS pos, BabelSenseSource source, String sensekey, BabelSynset synset)
lemma
- the sense lemmalanguage
- the sense languagepos
- the sense part of speechsource
- the sense sourcesensekey
- the sense keysynset
- the synset the sense belongs topublic BabelSense.Builder keySense(boolean bKeySense)
bKeySense
- true if the sense is key, false otherwiseBabelSense.Builder
public BabelSense.Builder keySense()
BabelSense.Builder
public BabelSense.Builder wordNetOffset(String wordNetOffset)
wordNetOffset
- the WordNet offset position for the (WordNet) senseBabelSense.Builder
public BabelSense.Builder wordNetSynsetPosition(Integer wordNetSynsetPosition)
wordNetSynsetPosition
- the WordNet synset position for the (WordNet) senseBabelSense.Builder
public BabelSense.Builder wordNetSenseNumber(Integer wordNetSenseNumber)
wordNetSenseNumber
- the WordNet sense number for the (WordNet) senseBabelSense.Builder
@Deprecated public BabelSense.Builder translationInfo(String translationInfo)
translationInfo
- the translation information for the senseBabelSense.Builder
public BabelSense.Builder YAGOURL(String YAGOURL)
YAGOURL
- the YAGO URL for the senseBabelSense.Builder
public BabelSense.Builder phonetics(BabelSensePhonetics pronunciations)
pronunciations
- phonetic informationBabelSense.Builder
public BabelSense build()
BabelSense
BabelSense
Copyright © 2016–2018. All rights reserved.