get_dataset

get_dataset(*, dataset: None | str | Path | Dataset | type[Dataset] = None, dataset_kwargs: Mapping[str, Any] | None = None, training: None | str | Path | CoreTriplesFactory = None, testing: None | str | Path | CoreTriplesFactory = None, validation: None | str | Path | CoreTriplesFactory = None) Dataset[source]

Get a dataset, cached based on the given kwargs.

Parameters:
  • dataset (None | str | Path | Dataset | type[Dataset]) – The name of a dataset, an instance of a dataset, or the class for a dataset.

  • dataset_kwargs (Mapping[str, Any] | None) – The keyword arguments, only to be used when a class for a dataset is used for the dataset keyword argument.

  • training (None | str | Path | CoreTriplesFactory) – A triples factory for training triples or a path to a training triples file if dataset=None

  • testing (None | str | Path | CoreTriplesFactory) – A triples factory for testing triples or a path to a testing triples file if dataset=None

  • validation (None | str | Path | CoreTriplesFactory) – A triples factory for validation triples or a path to a validation triples file if dataset=None

Returns:

An instantiated dataset

Raises:
Return type:

Dataset