CharacterNormalizer#
- class CharacterNormalizer(config)#
Bases:
NormalizerThe character
Normalizerremoves numeric digitsInput - all input fields need to be of type
strorlist`[:class:`str].Output - all output fields are filled with data of type
strrespectivelylist`[:class:`str].- Parameters:
type (str) – character
Example
{ "step": "normalizer", "type": "character", "input_fields": ["body"], "output_fields": ["normalized_body"] }
Methods Summary
process_doc(doc)Process a document
Methods Documentation