Class SentenceContextGenerator

Namespace
NOpenNLP.Tools.Sentdetect.Lang.Th
Assembly
NOpenNLP.Tools.dll

Creates contexts/features for end-of-sentence detection in Thai text.

public class SentenceContextGenerator : DefaultSDContextGenerator, ISDContextGenerator
Inheritance
SentenceContextGenerator
Implements
Inherited Members

Constructors

SentenceContextGenerator()

Creates contexts/features for end-of-sentence detection in Thai text.

public SentenceContextGenerator()

Fields

eosCharacters

public static readonly char[] eosCharacters

Field Value

char[]

Methods

CollectFeatures(string, string, string, string)

Determines some of the features for the sentence detector and adds them to list features.

protected override void CollectFeatures(string prefix, string suffix, string previous, string next)

Parameters

prefix string

String preceding the eos character in the eos token.

suffix string

String following the eos character in the eos token.

previous string

Space delimited token preceding token containing eos character.

next string

Space delimited token following token containing eos character.

Remarks

Deprecated: Use CollectFeatures instead.