opennlp.tools.doccat
Class BagOfWordsFeatureGenerator

java.lang.Object
  extended by opennlp.tools.doccat.BagOfWordsFeatureGenerator
All Implemented Interfaces:
FeatureGenerator

public class BagOfWordsFeatureGenerator
extends Object
implements FeatureGenerator

Generates a feature for each word in a document.


Constructor Summary
BagOfWordsFeatureGenerator()
           
 
Method Summary
 Collection<String> extractFeatures(String[] text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BagOfWordsFeatureGenerator

public BagOfWordsFeatureGenerator()
Method Detail

extractFeatures

public Collection<String> extractFeatures(String[] text)
Specified by:
extractFeatures in interface FeatureGenerator


Copyright © 2010. All Rights Reserved.