orkgnlp.annotation.agriner.decoder.AgriNerDecoder
- class AgriNerDecoder[source]
Bases:
ORKGNLPBaseDecoderThe AgriNerDecoder decodes the Agri-NER service model’s output to a user-friendly one.
Methods
Decodes the model's
outputto a user-friendly format.Releases the memory of all available attributes in a pipeline component.
Attributes
CONCEPTS_MAP- decode(model_output, **kwargs)[source]
Decodes the model’s
outputto a user-friendly format.- Parameters:
model_output (
List[Dict[str,Any]]) – The model’s output to be decoded.- Return type:
Any- Returns:
The user-friendly output.
- release_memory()
Releases the memory of all available attributes in a pipeline component.