public class SenseImpl extends Object implements Sense, Serializable
Constructor and Description |
---|
SenseImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addVerbFrame(VerbFrame frame)
Add verb frame.
|
int |
compareTo(Sense o) |
int |
depth()
Depth int.
|
boolean |
equals(Object obj) |
AdjectiveMarker |
getAdjectiveMarker()
Gets adjective marker.
|
String |
getId()
Gets id.
|
com.davidbracewell.Language |
getLanguage()
Gets language.
|
String |
getLemma()
ASCII form of a word as entered in the synset by the lexicographer, with spaces replaced by underscore characters
(_).
|
int |
getLexicalId()
One digit hexadecimal integer that, when appended onto lemma , uniquely identifies a sense within a lexicographer
file.
|
POS |
getPOS()
Gets pOS.
|
com.google.common.collect.HashMultimap<WordNetRelation,Sense> |
getRelatedSenses()
Gets related senses.
|
Set<Sense> |
getRelatedSenses(WordNetRelation relation)
Gets related senses.
|
int |
getSenseNumber()
Senses in WordNet are generally ordered from most to least frequently used, with the most common sense numbered 1.
|
Synset |
getSynset()
Gets synset.
|
int |
getSynsetPosition()
Gets synset position.
|
List<VerbFrame> |
getVerbFrames()
Gets verb frames.
|
int |
hashCode() |
void |
setAdjectiveMarker(AdjectiveMarker adjectiveMarker) |
void |
setId(String id) |
void |
setLanguage(com.davidbracewell.Language language) |
void |
setLemma(String lemma) |
void |
setLexicalId(int lexicalId) |
void |
setPartOfSpeech(WordNetPOS partOfSpeech)
Sets part of speech.
|
void |
setSense(int sense) |
void |
setSynset(Synset synset) |
void |
setSynsetPosition(int synsetPosition)
Sets synset position.
|
String |
toString() |
public void setAdjectiveMarker(AdjectiveMarker adjectiveMarker)
public void setId(String id)
public void setLanguage(com.davidbracewell.Language language)
public void setLemma(String lemma)
public void setLexicalId(int lexicalId)
public void setSense(int sense)
public void setSynset(Synset synset)
public String getLemma()
Sense
public int getSenseNumber()
Sense
getSenseNumber
in interface Sense
public int getLexicalId()
Sense
getLexicalId
in interface Sense
public int getSynsetPosition()
Sense
getSynsetPosition
in interface Sense
public void setSynsetPosition(int synsetPosition)
synsetPosition
- the synset positionpublic Set<Sense> getRelatedSenses(WordNetRelation relation)
Sense
getRelatedSenses
in interface Sense
relation
- the relationpublic com.google.common.collect.HashMultimap<WordNetRelation,Sense> getRelatedSenses()
Sense
getRelatedSenses
in interface Sense
public AdjectiveMarker getAdjectiveMarker()
Sense
getAdjectiveMarker
in interface Sense
public int depth()
Sense
public com.davidbracewell.Language getLanguage()
Sense
getLanguage
in interface Sense
public List<VerbFrame> getVerbFrames()
Sense
getVerbFrames
in interface Sense
public void addVerbFrame(VerbFrame frame)
frame
- the framepublic int compareTo(Sense o)
compareTo
in interface Comparable<Sense>
public void setPartOfSpeech(WordNetPOS partOfSpeech)
partOfSpeech
- the part of speechCopyright © 2016. All rights reserved.