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)
FeatureGenerator
extractFeatures
in interface FeatureGenerator
text
- the text fragments to extract features fromextraInformation
- optional extra information to be used by the feature generatorCopyright © 2020 The Apache Software Foundation. All rights reserved.