gov.llnl.ontology.wordnet.feature
Class StandardFeatureMaker

java.lang.Object
  extended by gov.llnl.ontology.wordnet.feature.StandardFeatureMaker
All Implemented Interfaces:
SynsetPairFeatureMaker

public class StandardFeatureMaker
extends Object
implements SynsetPairFeatureMaker

This SynsetPairFeatureMaker uses only the similarity of feature vectors as features when comparing two Synsets.

Author:
Keith Stevens

Constructor Summary
StandardFeatureMaker(List<String> synsetVectorLabels)
          Creates a new StandardFeatureMaker.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardFeatureMaker

public StandardFeatureMaker(List<String> synsetVectorLabels)
Creates a new StandardFeatureMaker.

Method Detail

makeAttributeList

public List<String> makeAttributeList()
Returns a list of attribute labels. This list must have the same length as the feature vector generated for every Synset pair.

Specified by:
makeAttributeList in interface SynsetPairFeatureMaker

makeFeatureVector

public 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.

Specified by:
makeFeatureVector in interface SynsetPairFeatureMaker


Copyright © 2010-2011. All Rights Reserved.