public class WordNetSense extends BabelSense
BabelSense.Builder
Modifier and Type | Field and Description |
---|---|
protected String |
wordNetOffset
The offset of the WordNet sense to which this sense corresponds,
if any
|
protected Integer |
wordNetSenseNumber
The sense number of the WordNet if any
|
protected Integer |
wordNetSynsetPosition
The position of the WordNet sense to which this sense corresponds,
|
fullLemma, language, pos, senseKey, simpleLemma, source, synset, synsetID
Modifier | Constructor and Description |
---|---|
protected |
WordNetSense(String lemma,
it.uniroma1.lcl.jlt.util.Language language,
com.babelscape.util.POS pos,
String sensekey,
BabelSynset synset,
String wordNetOffset,
Integer wordNetSynsetPosition,
Integer wordNetSenseNumber)
Creates a new instance of a
WordNetSense |
Modifier and Type | Method and Description |
---|---|
Integer |
getPosition()
Deprecated.
|
int |
getSenseNumber()
Gets the sense number of this
BabelSense . |
String |
getSenseString()
Gets a String-based representation of this
BabelSense alternative to the "canonical" one obtained using
BabelSense.toString() . |
Optional<String> |
getWordNetOffset()
Gets the WordNet offset of the WordNet sense to which this
BabelSense
corresponds, if any. |
equals, getDBPediaURI, getFrameNetURI, getFrequency, getFullLemma, getGeoNamesURI, getID, getLanguage, getLicense, getPOS, getPronunciations, getSensekey, getSenseTranslationInfo, getSimpleLemma, getSource, getSynset, getSynsetID, getVerbNetURI, getYAGOURI, hashCode, isAutomaticTranslation, isKeyConcept, isKeySense, isNotAutomaticTranslation, toString, toURI
protected Integer wordNetSenseNumber
protected String wordNetOffset
protected Integer wordNetSynsetPosition
protected WordNetSense(String lemma, it.uniroma1.lcl.jlt.util.Language language, com.babelscape.util.POS pos, String sensekey, BabelSynset synset, String wordNetOffset, Integer wordNetSynsetPosition, Integer wordNetSenseNumber)
WordNetSense
lemma
- the lemma of the senselanguage
- the language of the sensepos
- the part of speech of the sensesource
- the source of the sensesensekey
- the sense keysynset
- the synset the sense belongs towordNetOffset
- WordNet synset offsetwordNetSynsetPosition
- position in the synsetwordNetSenseNumber
- sense number in WordNetpublic Optional<String> getWordNetOffset()
BabelSense
corresponds, if any.getWordNetOffset
in class BabelSense
BabelSense
.@Deprecated public Integer getPosition()
BabelSense
corresponds, if any.getPosition
in class BabelSense
BabelSense
.public int getSenseNumber()
BabelSense
. This
corresponds to the sense number found in WordNet, if the sense belongs
to WordNet, 0 otherwise.getSenseNumber
in class BabelSense
BabelSense
.public String getSenseString()
BabelSense
BabelSense
alternative to the "canonical" one obtained using
BabelSense.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 translationgetSenseString
in class BabelSense
BabelSense
.Copyright © 2016–2018. All rights reserved.