|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.llnl.ontology.wordnet.feature.SnowEtAlFeatureMaker
public class SnowEtAlFeatureMaker
This SynsetPairFeatureMaker
creates a subset of the features used by
the following paper:
Synset
s. This is done because Synset
s that are automatically added
to WordNet are likely to be missing information content, glosses, and links
besides Hypernymy and Hyponymy.
The feature vectors generated by this class can be used to train a
classifier, if a predetermined clustering for all Sysnet
s can be
provided. When creating a set of test feature vectors, this set of
assignments does not need to be provided.
Classes which want to use a superset of these features can extends this class
and implement three helper methods.
Constructor Summary | |
---|---|
SnowEtAlFeatureMaker(OntologyReader wordnet)
Creates a new SnowEtAlFeatureMaker . |
|
SnowEtAlFeatureMaker(OntologyReader wordnet,
String mergedInfoFilename)
Creates a new SnowEtAlFeatureMaker . |
Method Summary | |
---|---|
protected void |
addExtraAttributes(List<String> attributeList)
Appends extra attribute labels. |
protected void |
addExtraFeatures(Synset sense1,
Synset sense2,
edu.ucla.sspace.vector.DoubleVector featureVector,
int index)
Adds extra feature values to featureVector . |
List<String> |
makeAttributeList()
Returns a list of attribute labels. |
edu.ucla.sspace.vector.DoubleVector |
makeFeatureVector(Synset sense1,
Synset sense2)
Returns a feature vector that specifies how similar synset1 is to
synset2 according to a variety of measures. |
protected int |
numExtraFeatures()
Returns the number of extra features. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SnowEtAlFeatureMaker(OntologyReader wordnet)
SnowEtAlFeatureMaker
. No sense clustering is used.
public SnowEtAlFeatureMaker(OntologyReader wordnet, String mergedInfoFilename)
SnowEtAlFeatureMaker
. If mergedInfoFilename
is not null, the cluster assignments are used as class labels.
Method Detail |
---|
protected int numExtraFeatures()
protected void addExtraAttributes(List<String> attributeList)
protected void addExtraFeatures(Synset sense1, Synset sense2, edu.ucla.sspace.vector.DoubleVector featureVector, int index)
featureVector
. index
is the
first index at which a feature can be stored.
public List<String> makeAttributeList()
Synset
pair.
makeAttributeList
in interface SynsetPairFeatureMaker
public edu.ucla.sspace.vector.DoubleVector makeFeatureVector(Synset sense1, Synset sense2)
synset1
is to
synset2
according to a variety of measures.
makeFeatureVector
in interface SynsetPairFeatureMaker
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |