opennlp.tools.doccat
Class BagOfWordsFeatureGenerator

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

public class BagOfWordsFeatureGenerator
extends java.lang.Object
implements FeatureGenerator

Generates a feature for each word in a document.


Constructor Summary
BagOfWordsFeatureGenerator()
           
 
Method Summary
 java.util.Collection extractFeatures(java.lang.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 java.util.Collection extractFeatures(java.lang.String[] text)
Specified by:
extractFeatures in interface FeatureGenerator


Copyright 2008 Jason Baldridge, Gann Bierner, and Thomas Morton. All Rights Reserved.