Class WordNetSense
java.lang.Object
it.uniroma1.lcl.babelnet.BabelSense
it.uniroma1.lcl.babelnet.WordNetSense
A WordNet sense. Provides WordNet-specific methods.
- Author:
- navigli
-
Nested Class Summary
Nested classes/interfaces inherited from class BabelSense
BabelSense.Builder -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe offset of the WordNet sense to which this sense corresponds, if anyprotected IntegerThe sense number of the WordNet if anyprotected IntegerThe position of the WordNet sense to which this sense corresponds,Fields inherited from class BabelSense
fullLemma, language, lemma, pos, senseKey, simpleLemma, source, synset, synsetID -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedWordNetSense(String lemma, String simpleLemma, it.uniroma1.lcl.jlt.util.Language language, it.uniroma1.lcl.jlt.util.POS pos, String sensekey, BabelSynset synset, String wordNetOffset, Integer wordNetSynsetPosition, Integer wordNetSenseNumber, BabelSenseSource source) Creates a new instance of aWordNetSense -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.intGets the sense number of thisBabelSense.Gets a String-based representation of thisBabelSensealternative to the "canonical" one obtained usingBabelSense.toString().Gets the WordNet offset of the WordNet sense to which thisBabelSensecorresponds, if any.Methods inherited from class BabelSense
equals, getDBPediaURI, getFrameNetURI, getFrequency, getFullLemma, getGeoNamesURI, getGlosses, getID, getLanguage, getLemma, getLicense, getNormalizedLemma, getPOS, getPronunciations, getSensekey, getSenseTranslationInfo, getSimpleLemma, getSource, getSynset, getSynsetID, getTags, getTags, getVerbNetURI, getYAGOURI, hashCode, isAutomaticTranslation, isKeyConcept, isKeySense, isNotAutomaticTranslation, isTaggedAs, isTaggedAs, isTaggedAs, toString, toURI
-
Field Details
-
wordNetSenseNumber
The sense number of the WordNet if any -
wordNetOffset
The offset of the WordNet sense to which this sense corresponds, if any -
wordNetSynsetPosition
The position of the WordNet sense to which this sense corresponds,
-
-
Constructor Details
-
WordNetSense
protected WordNetSense(String lemma, String simpleLemma, it.uniroma1.lcl.jlt.util.Language language, it.uniroma1.lcl.jlt.util.POS pos, String sensekey, BabelSynset synset, String wordNetOffset, Integer wordNetSynsetPosition, Integer wordNetSenseNumber, BabelSenseSource source) Creates a new instance of aWordNetSense- Parameters:
lemma- the lemma of the senselanguage- the language of the sensepos- the part of speech of the sensesensekey- the sense keysynset- the synset the sense belongs towordNetOffset- WordNet synset offsetwordNetSynsetPosition- position in the synsetwordNetSenseNumber- sense number in WordNetsource- the sense source
-
-
Method Details
-
getWordNetOffset
Gets the WordNet offset of the WordNet sense to which thisBabelSensecorresponds, if any.- Overrides:
getWordNetOffsetin classBabelSense- Returns:
- the offset of the WordNet sense corresponding to this
BabelSense.
-
getPosition
Deprecated.Gets the WordNet position of the WordNet sense to which thisBabelSensecorresponds, if any.- Overrides:
getPositionin classBabelSense- Returns:
- the position of the WordNet sense corresponding to this
BabelSense.
-
getSenseNumber
public int getSenseNumber()Gets the sense number of thisBabelSense. This corresponds to the sense number found in WordNet, if the sense belongs to WordNet, 0 otherwise.- Overrides:
getSenseNumberin classBabelSense- Returns:
- the sense number of this
BabelSense.
-
getSenseString
Description copied from class:BabelSenseGets a String-based representation of thisBabelSensealternative to the "canonical" one obtained usingBabelSense.toString(). This corresponds to a diesis-like representation if the sense belongs to WordNet, e.g. "car#n#1" or "funk#n#3", or the page title (with no prefix) it if corresponds to a Wikipedia sense, otherwise the lemma if it is a translation- Overrides:
getSenseStringin classBabelSense- Returns:
- a string representing this
BabelSense.
-