Interface ITokenContextGenerator

Namespace
NOpenNLP.Tools.Tokenize
Assembly
NOpenNLP.Tools.dll

Interface for TokenizerME context generators.

public interface ITokenContextGenerator

Methods

GetContext(string, int)

Returns an array of features for the specified sentence string at the specified index.

string[] GetContext(string sentence, int index)

Parameters

sentence string

The string for a sentence.

index int

The index to consider splitting as a token.

Returns

string[]

an array of features for the specified sentence string at the specified index.