Interface ISDContextGenerator

Namespace
NOpenNLP.Tools.Sentdetect
Assembly
NOpenNLP.Tools.dll

Interface for SentenceDetectorME context generators.

public interface ISDContextGenerator

Methods

GetContext(string, int)

Returns an array of contextual features for the potential sentence boundary at the specified position within the specified string buffer.

string[] GetContext(string s, int position)

Parameters

s string

The string for which sentences are being determined.

position int

An index into the specified string buffer when a sentence boundary may occur.

Returns

string[]

an array of contextual features for the potential sentence boundary at the specified position within the specified string buffer.