orkgnlp.common.tools.downloader.download

download(services, force_download=False)[source]

Downloads the models and data needed to use the supported services.

The download destination is given by ORKG_NLP_DATA_CACHE_ROOT. You can also check how to Configuration its value.

Parameters
  • services (Union[str, List[str]]) – a string representing a service name or a list of them. Check ORKG-NLP Services for a full list.

  • force_download (bool) – Indicates whether the required files are to be downloaded again. Defaults to False.

Raises

orkgnlp.common.util.exceptions.ORKGNLPValidationError – If one of the known passed service names is unknown.