Class InputHomogenization
- java.lang.Object
-
- org.deeplearning4j.text.inputsanitation.InputHomogenization
-
public class InputHomogenization extends Object
-
-
Constructor Summary
Constructors Constructor Description InputHomogenization(String input)Input text to applyTransformToOriginInputHomogenization(String input, boolean preserveCase)InputHomogenization(String input, List<String> ignoreCharactersContaining)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringtransform()Returns the normalized text passed in via constructor
-
-
-
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 applyTransformToOriginpreserveCase- whether to preserve case
-
-
Method Detail
-
transform
public String transform()
Returns the normalized text passed in via constructor- Returns:
- the normalized text passed in via constructor
-
-