edu.washington.cs.knowitall.extractor.conf.featureset
Class FeatureSet<T>
java.lang.Object
edu.washington.cs.knowitall.extractor.conf.featureset.FeatureSet<T>
- Direct Known Subclasses:
- ArgLearnerFeatureSet, BooleanFeatureSet, DoubleFeatureSet
public abstract class FeatureSet<T>
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
featureNames
protected final com.google.common.collect.ImmutableList<String> featureNames
FeatureSet
public FeatureSet(List<String> featureNames)
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.