Package com.gengoai.hermes.preprocessing
Class WhitespaceNormalizer
- java.lang.Object
-
- com.gengoai.hermes.preprocessing.TextNormalizer
-
- com.gengoai.hermes.preprocessing.WhitespaceNormalizer
-
- All Implemented Interfaces:
Serializable
public class WhitespaceNormalizer extends TextNormalizer
Handles normalizing whitespace.- Author:
- David B. Bracewell
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WhitespaceNormalizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
performNormalization(String input, Language inputLanguage)
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
public String performNormalization(String input, Language inputLanguage)
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 textinputLanguage
- The language of the input- Returns:
- The post-processed text
-
-