public class BagOfWordsFeatureGenerator extends Object implements FeatureGenerator
| Constructor and Description | 
|---|
| BagOfWordsFeatureGenerator() | 
| Modifier and Type | Method and Description | 
|---|---|
| Collection<String> | extractFeatures(String[] text,
               Map<String,Object> extraInformation)Extract features from given text fragments | 
public Collection<String> extractFeatures(String[] text, Map<String,Object> extraInformation)
FeatureGeneratorextractFeatures in interface FeatureGeneratortext - the text fragments to extract features fromextraInformation - optional extra information to be used by the feature generatorCopyright © 2018 The Apache Software Foundation. All rights reserved.