|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.washington.cs.knowitall.extractor.conf.featureset.FeatureSet<T>
edu.washington.cs.knowitall.extractor.conf.featureset.BooleanFeatureSet<T>
T - public class BooleanFeatureSet<T>
Represents a set of boolean feature functions that can be applied to objects
of type T. Each feature is represented as a
Predicate object, and has a String name.
| Field Summary |
|---|
| Fields inherited from class edu.washington.cs.knowitall.extractor.conf.featureset.FeatureSet |
|---|
featureNames |
| Constructor Summary | |
|---|---|
BooleanFeatureSet(Map<String,com.google.common.base.Predicate<T>> givenFeatures)
Constructs a new feature set from the given features. |
|
| Method Summary | |
|---|---|
double |
featurize(String featureName,
T object)
|
SortedMap<String,Boolean> |
featurize(T object)
Returns a feature representation of the given object. |
boolean |
featurizeToBool(String featureName,
T object)
|
boolean[] |
featurizeToBool(T object)
Returns the feature representation of object as an array of booleans. |
double[] |
featurizeToDouble(T object)
Returns the feature representation of object as an array of doubles. |
Map<String,com.google.common.base.Predicate<T>> |
getFeatures()
Returns the features as an ImmutableList, sorted using the default String comparator on the features' names. |
| Methods inherited from class edu.washington.cs.knowitall.extractor.conf.featureset.FeatureSet |
|---|
getFeatureNames, getNumFeatures |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BooleanFeatureSet(Map<String,com.google.common.base.Predicate<T>> givenFeatures)
givenFeatures - | Method Detail |
|---|
public SortedMap<String,Boolean> featurize(T object)
object -
public double[] featurizeToDouble(T object)
featurizeToDouble in class FeatureSet<T>object -
public boolean[] featurizeToBool(T object)
object -
public Map<String,com.google.common.base.Predicate<T>> getFeatures()
public double featurize(String featureName,
T object)
featurize in class FeatureSet<T>
public boolean featurizeToBool(String featureName,
T object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||