Package com.gengoai.hermes.preprocessing
Class TraditionalToSimplified
- java.lang.Object
-
- com.gengoai.hermes.preprocessing.TextNormalizer
-
- com.gengoai.hermes.preprocessing.TraditionalToSimplified
-
- All Implemented Interfaces:
Serializable
public class TraditionalToSimplified extends TextNormalizer
Preprocessor that converts traditional characters into simplified characters. Will only perform the normalization if the language is CHINESE.
- Author:
- David B. Bracewell
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TraditionalToSimplified()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
performNormalization(String input, Language language)
Performs a pre-processing operation on the input string in the given input language-
Methods inherited from class com.gengoai.hermes.preprocessing.TextNormalizer
apply
-
-
-
-
Method Detail
-
performNormalization
protected String performNormalization(String input, Language language)
Description copied from class:TextNormalizer
Performs a pre-processing operation on the input string in the given input language- Specified by:
performNormalization
in classTextNormalizer
- Parameters:
input
- The input textlanguage
- The language of the input- Returns:
- The post-processed text
-
-