LowercaseNormalizer#
- class LowercaseNormalizer(config)#
Bases:
Normalizer
The lowercase
Normalizer
lowercases everythingInput - all input fields need to be of type
str
.Output - all output fields are filled with data of type
str
.- Parameters:
type (str) – lowercase
Example
{ "step": "normalizer", "type": "lowercase", "input_fields": ["body"], "output_fields": ["lowercased_body"] }
Methods Summary
process_doc
(doc)Process a document
Methods Documentation