edu.washington.cs.knowitall.extractor.conf.featureset
Class FeatureSet<T>

java.lang.Object
  extended by edu.washington.cs.knowitall.extractor.conf.featureset.FeatureSet<T>
Direct Known Subclasses:
ArgLearnerFeatureSet, BooleanFeatureSet, DoubleFeatureSet

public abstract class FeatureSet<T>
extends Object


Field Summary
protected  com.google.common.collect.ImmutableList<String> featureNames
           
 
Constructor Summary
FeatureSet(List<String> featureNames)
           
 
Method Summary
abstract  double featurize(String featureName, T object)
           
 double[] featurizeToDouble(T object)
           
 List<String> getFeatureNames()
          Returns the feature names as an ImmutableList, sorted using the default String comparator.
 int getNumFeatures()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

featureNames

protected final com.google.common.collect.ImmutableList<String> featureNames
Constructor Detail

FeatureSet

public FeatureSet(List<String> featureNames)
Method Detail

featurize

public abstract double featurize(String featureName,
                                 T object)

featurizeToDouble

public double[] featurizeToDouble(T object)

getNumFeatures

public int getNumFeatures()
Returns:
the number of features in this feature set

getFeatureNames

public List<String> getFeatureNames()
Returns the feature names as an ImmutableList, sorted using the default String comparator.

Returns:


Copyright © 2010-2012 University of Washington CSE. All Rights Reserved.