gov.llnl.ontology.wordnet.feature
Class ExtendedSnowEtAlFeatureMaker

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

public class ExtendedSnowEtAlFeatureMaker
extends SnowEtAlFeatureMaker

This SynsetPairFeatureMaker extends the SnowEtAlFeatureMaker by including the similarities of feature vectors for two Synsets.

Author:
Keith Stevens

Constructor Summary
ExtendedSnowEtAlFeatureMaker(OntologyReader wordnet, List<String> synsetVectorLabels)
          Creates a new ExtendedSnowEtAlFeatureMaker.
ExtendedSnowEtAlFeatureMaker(OntologyReader wordnet, String senseMergedFilename, List<String> synsetVectorLabels)
          Creates a new ExtendedSnowEtAlFeatureMaker.
 
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 the distributional similarity score for sense1 and sense2 for each of the specified ontological vectors associated with each synset.
protected  int numExtraFeatures()
          Returns the number of extra features.
 String toString()
           
 
Methods inherited from class gov.llnl.ontology.wordnet.feature.SnowEtAlFeatureMaker
makeAttributeList, makeFeatureVector
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExtendedSnowEtAlFeatureMaker

public ExtendedSnowEtAlFeatureMaker(OntologyReader wordnet,
                                    List<String> synsetVectorLabels)
Creates a new ExtendedSnowEtAlFeatureMaker. No sense clustering is used.


ExtendedSnowEtAlFeatureMaker

public ExtendedSnowEtAlFeatureMaker(OntologyReader wordnet,
                                    String senseMergedFilename,
                                    List<String> synsetVectorLabels)
Creates a new ExtendedSnowEtAlFeatureMaker.

Method Detail

numExtraFeatures

protected int numExtraFeatures()
Returns the number of extra features.

Overrides:
numExtraFeatures in class SnowEtAlFeatureMaker

addExtraAttributes

protected void addExtraAttributes(List<String> attributeList)
Appends extra attribute labels.

Overrides:
addExtraAttributes in class SnowEtAlFeatureMaker

addExtraFeatures

protected void addExtraFeatures(Synset sense1,
                                Synset sense2,
                                edu.ucla.sspace.vector.DoubleVector featureVector,
                                int index)
Adds the distributional similarity score for sense1 and sense2 for each of the specified ontological vectors associated with each synset. If either word sense lacks one of the ontological vectors, this stores for that feature 0.

Overrides:
addExtraFeatures in class SnowEtAlFeatureMaker

toString

public String toString()
Overrides:
toString in class SnowEtAlFeatureMaker


Copyright © 2010-2011. All Rights Reserved.