CharacterNormalizer
CharacterNormalizer#
- class squirro.lib.nlp.steps.normalizers.CharacterNormalizer(config)#
Bases:
squirro.lib.nlp.steps.normalizers.base.Normalizer
The character
Normalizer
removes numeric digitsInput - all input fields need to be of type
str
orlist`[:class:`str
].Output - all output fields are filled with data of type
str
respectivelylist`[: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