mark.nlp.features
Interface Orderer

All Known Implementing Classes:
ClassificationOrderer, None

public interface Orderer

Orders a set of potential features.


Method Summary
 ObjectMap order(BagCorpusCounter counter, BagCorpusCounter[] catCounters, ObjectMap potentialFeatures, java.lang.String parameter)
          Given corpus counters for a data set and a set of potential features, orders the potential features according to some criteria.
 

Method Detail

order

public ObjectMap order(BagCorpusCounter counter,
                       BagCorpusCounter[] catCounters,
                       ObjectMap potentialFeatures,
                       java.lang.String parameter)
                throws java.lang.Exception
Given corpus counters for a data set and a set of potential features, orders the potential features according to some criteria.

Parameters:
counter - a corpus counter in which each bag corresponds to a category.
catCounters - a set of counters. For the counter with index i, bags correspond to documents within category i.
potentialFeatures - the set of potential features.
Returns:
the same set of potential features ordered according to the the criteria.
java.lang.Exception