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 giventext
fragments.
-
Methodendetails
-
extractFeatures
Extracts features from giventext
fragments.- Parameter:
text
- The text fragments to extract features fromextraInformation
- Optional extra information to be used by theFeatureGenerator
.- Gibt zurück:
- A collection of features.
-