opennlp.tools.doccat
Class BagOfWordsFeatureGenerator
java.lang.Object
opennlp.tools.doccat.BagOfWordsFeatureGenerator
- All Implemented Interfaces:
- FeatureGenerator
public class BagOfWordsFeatureGenerator
- extends Object
- implements FeatureGenerator
Generates a feature for each word in a document.
BagOfWordsFeatureGenerator
public BagOfWordsFeatureGenerator()
extractFeatures
public Collection<String> extractFeatures(String[] text)
- Specified by:
extractFeatures
in interface FeatureGenerator
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.