Package opennlp.tools.doccat
Interface FeatureGenerator
-
- All Known Implementing Classes:
BagOfWordsFeatureGenerator
,NGramFeatureGenerator
public interface FeatureGenerator
Interface for generating features for document categorization.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<String>
extractFeatures(String[] text, Map<String,Object> extraInformation)
Extracts features from giventext
fragments.
-
-
-
Method Detail
-
extractFeatures
Collection<String> extractFeatures(String[] text, Map<String,Object> extraInformation)
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.
-
-