Class InputHomogenization


  • public class InputHomogenization
    extends Object
    • Constructor Detail

      • InputHomogenization

        public InputHomogenization​(String input)
        Input text to applyTransformToOrigin
        Parameters:
        input - the input text to applyTransformToOrigin, equivalent to calling this(input,false) wrt preserving case
      • InputHomogenization

        public InputHomogenization​(String input,
                                   boolean preserveCase)
        Parameters:
        input - the input to applyTransformToOrigin
        preserveCase - whether to preserve case
      • InputHomogenization

        public InputHomogenization​(String input,
                                   List<String> ignoreCharactersContaining)
        Parameters:
        input - the input to applyTransformToOrigin
        ignoreCharactersContaining - ignore transformation of words containigng specified strings
    • Method Detail

      • transform

        public String transform()
        Returns the normalized text passed in via constructor
        Returns:
        the normalized text passed in via constructor