OffsetMappingFilter#
- class OffsetMappingFilter(config)#
Bases:
Filter
- Takes a prediction field of the form:
[ { “start”: int, “end”: int, “label”: str, “text”: str }, … ]
and adjusts the start and end offsets according to the mapping
- Parameters:
Methods Summary
process_doc
(doc)Process a document
Methods Documentation