Class PreviousTwoMapFeatureGenerator

Namespace
NOpenNLP.Tools.Util.Featuregen
Assembly
NOpenNLP.Tools.dll

This IAdaptiveFeatureGenerator generates features indicating the outcome associated with two previously occuring words.

public class PreviousTwoMapFeatureGenerator : IAdaptiveFeatureGenerator
Inheritance
PreviousTwoMapFeatureGenerator
Implements
Inherited Members

Methods

ClearAdaptiveData()

Clears the previous map.

public virtual void ClearAdaptiveData()

CreateFeatures(IList<string>, string[], int, string[])

Generates previous decision features for the token based on contents of the previous map.

public virtual void CreateFeatures(IList<string> features, string[] tokens, int index, string[] preds)

Parameters

features IList<string>
tokens string[]
index int
preds string[]

UpdateAdaptiveData(string[], string[])

Informs the feature generator that the specified tokens have been classified with the corresponding set of specified outcomes.

public virtual void UpdateAdaptiveData(string[] tokens, string[] outcomes)

Parameters

tokens string[]

The tokens of the sentence or other text unit which has been processed.

outcomes string[]

The outcomes associated with the specified tokens.