Make custom preprocessors
If prepared preprocessors are not enough to you, you can make custom preprocessors.
Base classes for customizing
Following base classes are prepared to make custom preprocessor.
- Text reprocessor:
TextNormalizer
andTextFilter
- Tokenizer: -
- Token preprocessor:
TokenNormalizer
andTokenFilter
- Vocabulary: -
- Formatter:
BaseFormatter
- Generator:
SourceGenerator
andTargetGenerator
All you have to do is implements apply
or transform
method for each base class.