mark.nlp.features
Class Selector

java.lang.Object
  |
  +--mark.nlp.features.Selector

public class Selector
extends java.lang.Object

Provides a routine that, given a ordered set of potential features, selects the best.


Constructor Summary
Selector()
           
 
Method Summary
static ObjectMap select(ObjectMap potentialFeatures, int numFeatures)
          Given a set of ordered potential features, selects the best.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Selector

public Selector()
Method Detail

select

public static ObjectMap select(ObjectMap potentialFeatures,
                               int numFeatures)
                        throws java.lang.Exception
Given a set of ordered potential features, selects the best.

Parameters:
potentialFeatures - the ordered potential features.
numFeatures - the number of features to select.
Returns:
the selected features. If numFeatures is greater than the number of potential features, then prints a warning to standard error and returns all of the potential features.
Throws:
throws - Exception if numFeatures <= 0.
java.lang.Exception