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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BagOfWordsFeatureGenerator
public BagOfWordsFeatureGenerator()
extractFeatures
public Collection<String> extractFeatures(String[] text)
- Specified by:
extractFeatures
in interface FeatureGenerator
Copyright © 2010. All Rights Reserved.