|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectopennlp.tools.doccat.BagOfWordsFeatureGenerator
public class BagOfWordsFeatureGenerator
Generates a feature for each word in a document.
Constructor Summary | |
---|---|
BagOfWordsFeatureGenerator()
|
Method Summary | |
---|---|
java.util.Collection<java.lang.String> |
extractFeatures(java.lang.String[] text)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BagOfWordsFeatureGenerator()
Method Detail |
---|
public java.util.Collection<java.lang.String> extractFeatures(java.lang.String[] text)
extractFeatures
in interface FeatureGenerator
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |