Class 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 Detail

      • TraditionalToSimplified

        public TraditionalToSimplified()
    • 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 class TextNormalizer
        Parameters:
        input - The input text
        language - The language of the input
        Returns:
        The post-processed text