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