Class TextNormalizer

    • Constructor Detail

      • TextNormalizer

        public TextNormalizer()
    • Method Detail

      • apply

        public final String apply​(String input,
                                  Language inputLanguage)
        Performs a pre-processing operation on the input string in the given input language
        Parameters:
        input - The input text
        inputLanguage - The language of the input
        Returns:
        The post-processed text
      • performNormalization

        protected abstract String performNormalization​(String input,
                                                       Language language)
        Performs a pre-processing operation on the input string in the given input language
        Parameters:
        input - The input text
        language - The language of the input
        Returns:
        The post-processed text