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

i int

The index of the token in the specified toks array for which the context should be constructed.

toks string[]

The tokens of the sentence. The ToString() methods of these objects should return the token text.

tags string[]

The POS tags for the specified tokens.

lemmas string[]

The previous decisions made in the tagging of this sequence. Only indices less than i will be examined.

Returns

string[]

An array of predictive contexts on which a model basis its decisions.