orkgnlp.clustering.bioassays.decoder.BioassaysSemantifierDecoder

class BioassaysSemantifierDecoder(mapping)[source]

Bases: ORKGNLPBaseDecoder

The BioassaysSemantifierDecoder decodes the Bioassays semantification service model’s output to a user-friendly one.

Parameters

mapping (Dict[str, Dict[str, Any]]) – Cluster label resources mapping.

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.

decode(model_output, **kwargs)[source]

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

Parameters

model_output (Union[Any, Generator[Any, None, None]]) – 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.