public static class WordNet.Synset extends Object implements Serializable, Comparable<WordNet.Synset>
| Modifier and Type | Field and Description |
|---|---|
protected 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
|
Object |
marker
Public marker
|
protected List<WordNet.Synset> |
ups
Upward connected synsets of this synset
|
protected List<String> |
words
Words of this synset
|
| Constructor and Description |
|---|
Synset(int idnum)
Constructs a synset from an id
|
| Modifier and Type | Method and Description |
|---|---|
Set<WordNet.Synset> |
ancestors()
Returns the set of ancestors
|
protected void |
ancestors(Set<WordNet.Synset> set)
Returns the set of ancestors of a Synset
|
int |
compareTo(WordNet.Synset o)
Sorts synsets by id
|
Set<WordNet.Synset> |
descendants()
Returns the set of descendants
|
protected void |
descendants(Set<WordNet.Synset> set)
Returns the set of ancestors of a Synset
|
boolean |
equals(Object o)
Tells wether the ids are the same
|
List<WordNet.Synset> |
getDowns()
Returns the downs.
|
int |
getId()
Returns the id.
|
List<WordNet.Synset> |
getUps()
Returns the ups.
|
List<String> |
getWords()
Returns the words.
|
WordNet.WordType |
getWordType()
Returns WordType
|
int |
hashCode()
Returns the id
|
String |
toSmallString()
Returns the most frequent word for this and the parent
|
String |
toString()
Returns the id and the words of this synset
|
protected int id
protected List<WordNet.Synset> ups
protected List<WordNet.Synset> downs
public Object marker
public int intMarker
public boolean equals(Object o)
public int compareTo(WordNet.Synset o)
compareTo in interface Comparable<WordNet.Synset>public final String toString()
public List<WordNet.Synset> getDowns()
public int getId()
public List<WordNet.Synset> getUps()
public String toSmallString()
public WordNet.WordType getWordType()
public Set<WordNet.Synset> ancestors()
protected void ancestors(Set<WordNet.Synset> set)
public Set<WordNet.Synset> descendants()
protected void descendants(Set<WordNet.Synset> set)
Copyright © 2018. All rights reserved.