se.lth.cs.nlp.nlputils.ml
Class FeatureExtractor<T>

java.lang.Object
  extended by se.lth.cs.nlp.nlputils.ml.FeatureExtractor<T>

public abstract class FeatureExtractor<T>
extends Object

Abstract class that represents the mapping from an item to a list of feature values.

Author:
Richard Johansson (richard@cs.lth.se)

Field Summary
static int FEATURE_EXTRACTOR_FAILED
           
static int FEATURE_EXTRACTOR_OK
           
 
Constructor Summary
FeatureExtractor()
           
 
Method Summary
abstract  int extractFeatures(T item, FeatureList list)
          Extracts features of an item to a FeatureList.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FEATURE_EXTRACTOR_OK

public static final int FEATURE_EXTRACTOR_OK
See Also:
Constant Field Values

FEATURE_EXTRACTOR_FAILED

public static final int FEATURE_EXTRACTOR_FAILED
See Also:
Constant Field Values
Constructor Detail

FeatureExtractor

public FeatureExtractor()
Method Detail

extractFeatures

public abstract int extractFeatures(T item,
                                    FeatureList list)
Extracts features of an item to a FeatureList.

Parameters:
item - the item to classify.
list - the feature list.
Returns:
a status integer.