Class BagOfWordsFeatureGenerator

Namespace
NOpenNLP.Tools.Doccat
Assembly
NOpenNLP.Tools.dll

Generates a feature for each word in a document.

public class BagOfWordsFeatureGenerator : IFeatureGenerator
Inheritance
BagOfWordsFeatureGenerator
Implements
Inherited Members

Constructors

BagOfWordsFeatureGenerator()

public BagOfWordsFeatureGenerator()

Methods

ExtractFeatures(string[], IDictionary<string, object>)

Extract features from given text fragments

public virtual ICollection<string> ExtractFeatures(string[] text, IDictionary<string, object> extraInformation)

Parameters

text string[]

the text fragments to extract features from

extraInformation IDictionary<string, object>

optional extra information to be used by the feature generator

Returns

ICollection<string>

a collection of features