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, lemma, pos, senseKey, simpleLemma, source, synset, synsetID| Modifier | Constructor and Description |
|---|---|
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 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, 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, toURIprotected Integer wordNetSenseNumber
protected String wordNetOffset
protected Integer wordNetSynsetPosition
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)
WordNetSenselemma - 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 sourcepublic Optional<String> getWordNetOffset()
BabelSense
corresponds, if any.getWordNetOffset in class BabelSenseBabelSense.@Deprecated public Integer getPosition()
BabelSense
corresponds, if any.getPosition in class BabelSenseBabelSense.public int getSenseNumber()
BabelSense. This
corresponds to the sense number found in WordNet, if the sense belongs
to WordNet, 0 otherwise.getSenseNumber in class BabelSenseBabelSense.public String getSenseString()
BabelSenseBabelSense 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 BabelSenseBabelSense.Copyright © 2016–2022. All rights reserved.