Package opennlp.tools.doccat
Interface FeatureGenerator
-
- All Known Implementing Classes:
BagOfWordsFeatureGenerator,NGramFeatureGenerator
public interface FeatureGeneratorInterface 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 giventextfragments.
-
-
-
Method Detail
-
extractFeatures
Collection<String> extractFeatures(String[] text, Map<String,Object> extraInformation)
Extracts features from giventextfragments.- Parameters:
text- The text fragments to extract features fromextraInformation- Optional extra information to be used by theFeatureGenerator.- Returns:
- A collection of features.
-
-