Class ShrinkCharSequenceNormalizer

Namespace
NOpenNLP.Tools.Util.Normalizer
Assembly
NOpenNLP.Tools.dll

Normalizer to shrink repeated spaces / chars.

public class ShrinkCharSequenceNormalizer : ICharSequenceNormalizer
Inheritance
ShrinkCharSequenceNormalizer
Implements
Inherited Members

Methods

GetInstance()

public static ShrinkCharSequenceNormalizer GetInstance()

Returns

ShrinkCharSequenceNormalizer

Normalize(string)

Normalize a sequence of characters.

public string Normalize(string text)

Parameters

text string

the char sequence to normalize

Returns

string

the normalized char sequence