smile.nlp.normalizer
Class SimpleNormalizer
- java.lang.Object
-
- smile.nlp.normalizer.SimpleNormalizer
-
- All Implemented Interfaces:
- Normalizer
public class SimpleNormalizer extends java.lang.Object implements Normalizer
A baseline normalizer for processing Unicode text:- Apply Unicode normalization form NFKC.
- Strip, trim, normalize, and compress whitespace.
- Remove control and formatting characters.
- Normalize dash, double and single quotes.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static SimpleNormalizergetInstance()Returns the singleton instance.java.lang.Stringnormalize(java.lang.String text)Normalize the given string.
-
-
-
Method Detail
-
getInstance
public static SimpleNormalizer getInstance()
Returns the singleton instance.
-
normalize
public java.lang.String normalize(java.lang.String text)
Description copied from interface:NormalizerNormalize the given string.- Specified by:
normalizein interfaceNormalizer
-
-
DataMelt 3.0 © DataMelt by jWork.ORG