Package opennlp.tools.doccat
Schnittstelle FeatureGenerator
- Alle bekannten Implementierungsklassen:
BagOfWordsFeatureGenerator,NGramFeatureGenerator
public interface FeatureGenerator
Interface for generating features for document categorization.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungextractFeatures(String[] text, Map<String, Object> extraInformation) Extracts features from giventextfragments.
-
Methodendetails
-
extractFeatures
Extracts features from giventextfragments.- Parameter:
text- The text fragments to extract features fromextraInformation- Optional extra information to be used by theFeatureGenerator.- Gibt zurück:
- A collection of features.
-