public static class WordNet.Synset extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<WordNet.Synset>
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<WordNet.Synset> |
downs
Downward connected synsets of this synset
|
protected int |
id
Id as given in the WordNet Prolog files
|
int |
intMarker
Public marker
|
java.lang.Object |
marker
Public marker
|
protected java.util.List<WordNet.Synset> |
ups
Upward connected synsets of this synset
|
protected java.util.List<java.lang.String> |
words
Words of this synset
|
| Constructor and Description |
|---|
Synset(int idnum)
Constructs a synset from an id
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<WordNet.Synset> |
ancestors()
Returns the set of ancestors
|
protected void |
ancestors(java.util.Set<WordNet.Synset> set)
Returns the set of ancestors of a Synset
|
int |
compareTo(WordNet.Synset o)
Sorts synsets by id
|
java.util.Set<WordNet.Synset> |
descendants()
Returns the set of descendants
|
protected void |
descendants(java.util.Set<WordNet.Synset> set)
Returns the set of ancestors of a Synset
|
boolean |
equals(java.lang.Object o)
Tells wether the ids are the same
|
java.util.List<WordNet.Synset> |
getDowns()
Returns the downs.
|
int |
getId()
Returns the id.
|
java.util.List<WordNet.Synset> |
getUps()
Returns the ups.
|
java.util.List<java.lang.String> |
getWords()
Returns the words.
|
WordNet.WordType |
getWordType()
Returns WordType
|
int |
hashCode()
Returns the id
|
java.lang.String |
toSmallString()
Returns the most frequent word for this and the parent
|
java.lang.String |
toString()
Returns the id and the words of this synset
|
protected int id
protected java.util.List<java.lang.String> words
protected java.util.List<WordNet.Synset> ups
protected java.util.List<WordNet.Synset> downs
public java.lang.Object marker
public int intMarker
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int compareTo(WordNet.Synset o)
compareTo in interface java.lang.Comparable<WordNet.Synset>public final java.lang.String toString()
toString in class java.lang.Objectpublic java.util.List<WordNet.Synset> getDowns()
public int getId()
public java.util.List<WordNet.Synset> getUps()
public java.util.List<java.lang.String> getWords()
public java.lang.String toSmallString()
public WordNet.WordType getWordType()
public java.util.Set<WordNet.Synset> ancestors()
protected void ancestors(java.util.Set<WordNet.Synset> set)
public java.util.Set<WordNet.Synset> descendants()
protected void descendants(java.util.Set<WordNet.Synset> set)