ConceptNet

class ConceptNet(create_inverse_triples=False, random_state=0, **kwargs)[source]

Bases: SingleTabbedDataset

The ConceptNet dataset from [speer2017].

The dataset is structured into 5 columns (see https://github.com/commonsense/conceptnet5/wiki/Downloads#assertions): edge URL, relation, head, tail, metadata.

Initialize the ConceptNet dataset from [speer2017].

Parameters
  • create_inverse_triples (bool) – Should inverse triples be created? Defaults to false.

  • random_state (Union[None, int, Generator]) – The random seed to use in splitting the dataset. Defaults to 0.

  • kwargs – keyword arguments passed to pykeen.datasets.base.SingleTabbedDataset.