orkgnlp.annotation.agriner.decoder.AgriNerDecoder

class AgriNerDecoder[source]

Bases: ORKGNLPBaseDecoder

The AgriNerDecoder decodes the Agri-NER service model’s output to a user-friendly one.

Methods

decode

Decodes the model's output to a user-friendly format.

release_memory

Releases the memory of all available attributes in a pipeline component.

Attributes

CONCEPTS_MAP

decode(model_output, **kwargs)[source]

Decodes the model’s output to 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.