orkgnlp.clustering.bioassays.decoder.BioassaysSemantifierDecoder
- class BioassaysSemantifierDecoder(mapping)[source]
Bases:
ORKGNLPBaseDecoderThe 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
Decodes the model's
outputto a user-friendly format.Releases the memory of all available attributes in a pipeline component.
- decode(model_output, **kwargs)[source]
Decodes the model’s
outputto 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.