Interface ILemmatizerContextGenerator
- Namespace
- NOpenNLP.Tools.Lemmatizer
- Assembly
- NOpenNLP.Tools.dll
Interface for the context generator used for probabilistic lemmatizer.
public interface ILemmatizerContextGenerator : IBeamSearchContextGenerator<string>
- Inherited Members
Methods
GetContext(int, string[], string[], string[])
Returns the contexts for lemmatizing of the specified index.
string[] GetContext(int i, string[] toks, string[] tags, string[] lemmas)
Parameters
iintThe index of the token in the specified toks array for which the context should be constructed.
toksstring[]The tokens of the sentence. The ToString() methods of these objects should return the token text.
tagsstring[]The POS tags for the specified tokens.
lemmasstring[]The previous decisions made in the tagging of this sequence. Only indices less than
iwill be examined.
Returns
- string[]
An array of predictive contexts on which a model basis its decisions.