orkgnlp.clustering.bioassays.semantifier.BioassaysSemantifier
- class BioassaysSemantifier(*args, **kwargs)[source]
Bases:
ORKGNLPBaseServiceThe BioassaysSemantifier requires a clustering model, vectorizer and mapping. The required files are downloaded while initiation, if it has not happened before.
You can pass the parameter
force_download=Trueto remove and re-download the previous downloaded service files.- Parameters:
service – Service name.
force_download – Indicates whether the required files are to be downloaded again. Defaults to False.
batch_size – Size of the batches used during model prediction. This argument is used by services that applies batch evaluation. Defaults to 16.
Methods
Releases the memory of all available executors.
Attributes
SERVICE_NAME- __call__(text)[source]
Semantifies a given BioAssay’s description text.
- Parameters:
text (
str) – BioAssay’s text to be semantified.- Return type:
any- Returns:
Dictionary object of semantified properties, resources and labels.
- release_memory()
Releases the memory of all available executors.