| Package | Description |
|---|---|
| javatools.database |
| Modifier and Type | Field and Description |
|---|---|
protected WordNet.Synset |
WordNet.source
Holds the current source synset for NCA calculi
|
| Modifier and Type | Field and Description |
|---|---|
protected List<WordNet.Synset> |
WordNet.Synset.downs
Downward connected synsets of this synset
|
protected Map<Integer,WordNet.Synset> |
WordNet.id2synset
Maps ids to synsets (compiled on demand)
|
protected List<WordNet.Synset> |
WordNet.Synset.ups
Upward connected synsets of this synset
|
Map<String,List<WordNet.Synset>> |
WordNet.word2synsets
Maps words to synsets
|
| Modifier and Type | Method and Description |
|---|---|
WordNet.Synset |
WordNet.getSynset(int id)
Returns a synset for a given id
|
protected WordNet.Synset |
WordNet.nca(WordNet.Synset destination,
int[] dist,
int d)
Finds the NCA by help of labels
|
WordNet.Synset |
WordNet.nca(WordNet.Synset s1,
WordNet.Synset s2)
Returns the nearest common ancestor of two synsets.
|
WordNet.Synset |
WordNet.nca(WordNet.Synset source,
WordNet.Synset destination,
int[] dist1,
int[] dist2)
Returns the nearest common ancestor of two synsets.
|
WordNet.Synset |
WordNet.synsetFor(String word,
String otherWord)
Returns the synset that contain two words
|
| Modifier and Type | Method and Description |
|---|---|
Set<WordNet.Synset> |
WordNet.Synset.ancestors()
Returns the set of ancestors
|
Set<WordNet.Synset> |
WordNet.Synset.descendants()
Returns the set of descendants
|
List<WordNet.Synset> |
WordNet.Synset.getDowns()
Returns the downs.
|
Map<Integer,WordNet.Synset> |
WordNet.getId2SynsetMap()
Returns the map from ids to synsets
|
Collection<WordNet.Synset> |
WordNet.getSynsets()
Compiles the set of all Synsets
|
List<WordNet.Synset> |
WordNet.Synset.getUps()
Returns the ups.
|
List<WordNet.Synset> |
WordNet.synsetsFor(String s)
Returns the list of synsets that contain a word
|
| Modifier and Type | Method and Description |
|---|---|
int |
WordNet.ancestor(WordNet.Synset s1,
WordNet.Synset s2)
Returns the distance in the hierarchy upwards from the first node to the second, -1 in case of failure
|
int |
WordNet.Synset.compareTo(WordNet.Synset o)
Sorts synsets by id
|
int |
WordNet.distance(WordNet.Synset s1,
WordNet.Synset s2)
Returns the length of s1->NCA->s2, -1 in case of failure
|
protected WordNet.Synset |
WordNet.nca(WordNet.Synset destination,
int[] dist,
int d)
Finds the NCA by help of labels
|
WordNet.Synset |
WordNet.nca(WordNet.Synset s1,
WordNet.Synset s2)
Returns the nearest common ancestor of two synsets.
|
WordNet.Synset |
WordNet.nca(WordNet.Synset source,
WordNet.Synset destination,
int[] dist1,
int[] dist2)
Returns the nearest common ancestor of two synsets.
|
void |
WordNet.remove(WordNet.Synset s)
Removes a synset
|
protected void |
WordNet.setSource(WordNet.Synset start)
Sets the source for an NCA or distance calculus
|
protected void |
WordNet.setSource(WordNet.Synset start,
int dist)
Labels all up's of a synset with their distance from start
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
WordNet.Synset.ancestors(Set<WordNet.Synset> set)
Returns the set of ancestors of a Synset
|
protected void |
WordNet.Synset.descendants(Set<WordNet.Synset> set)
Returns the set of ancestors of a Synset
|
Copyright © 2018. All rights reserved.