Package opennlp.tools.doccat
Interface FeatureGenerator
- All Known Implementing Classes:
- BagOfWordsFeatureGenerator,- NGramFeatureGenerator
public interface FeatureGenerator
Interface for generating features for document categorization.
- 
Method SummaryModifier and TypeMethodDescriptionextractFeatures(String[] text, Map<String, Object> extraInformation) Extracts features from giventextfragments.
- 
Method Details- 
extractFeaturesExtracts features from giventextfragments.- Parameters:
- text- The text fragments to extract features from
- extraInformation- Optional extra information to be used by the- FeatureGenerator.
- Returns:
- A collection of features.
 
 
-