Class EndingPreProcessor
- java.lang.Object
-
- org.deeplearning4j.text.tokenization.tokenizer.preprocessor.EndingPreProcessor
-
- All Implemented Interfaces:
TokenPreProcess
public class EndingPreProcessor extends Object implements TokenPreProcess
Gets rid of endings: ed,ing, ly, s, .- Author:
- Adam Gibson
-
-
Constructor Summary
Constructors Constructor Description EndingPreProcessor()
-
-
-
Method Detail
-
preProcess
public String preProcess(String token)
Description copied from interface:TokenPreProcess
Pre process a token- Specified by:
preProcess
in interfaceTokenPreProcess
- Parameters:
token
- the token to pre process- Returns:
- the preprocessed token
-
-