gov.llnl.ontology.wordnet
Class WordNetCondenser
java.lang.Object
gov.llnl.ontology.wordnet.WordNetCondenser
public class WordNetCondenser
- extends Object
This runnable class creates a series of feature vectors for every synset
reachable from the noun "entity" Synset
. Competing Synset
s for every noun lemma are merged using agglomerative merging. The
similarity between any two Synset
s is the average simiarlity of the
created feature vectors for the two Synset
s, along with any
additional features created by a SynsetPairFeatureMaker
. The
resulting WordNet hierarchy is then saved to disk.
- Author:
- Keith Stevens
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WordNetCondenser
public WordNetCondenser()
main
public static void main(String[] args)
throws IOException
- Performs the merge.
- Throws:
IOException
condense
public static void condense(Synset root,
SynsetPairFeatureMaker featureMaker)
- Agglomeratively clusters the competing
Synset
s for each lemma
in WordNet. The similarity between any two Synset
s the average
value of the feature vector generated by the featureMaker
.
Copyright © 2010-2011. All Rights Reserved.