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
prefixstringString preceding the eos character in the eos token.
suffixstringString following the eos character in the eos token.
previousstringSpace delimited token preceding token containing eos character.
nextstringSpace delimited token following token containing eos character.
Remarks
Deprecated: Use CollectFeatures instead.