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
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)