Repository: pykeen/pykeen
Issue: WikidataTextRepresentation example code not working
Root cause: Interface Contract Mismatch

### Describe the bug

The example code proposed for the class _WikidataTextRepresentation_ is not working.

```python
from pykeen.datasets import get_dataset
from pykeen.models import ERModel
from pykeen.nn import WikidataTextRepresentation
from pykeen.pipeline import pipeline

dataset = get_dataset(dataset="codexsmall")
entity_representations = WikidataTextRepresentation.from_dataset(dataset=dataset, encoder="transformer")`
```


```python-traceback
TypeError Traceback (most recent call last)
Cell In[25], line 7
4 from pykeen.pipeline import pipeline
6 dataset = get_dataset(dataset="codexsmall")
----> 7 entity_representations = WikidataTextRepresentation.from_dataset(dataset=dataset, encoder="transformer")

File D:\anaconda3\envs\pytorch2\lib\site-packages\pykeen\nn\representation.py:1091, in TextRepresentation.from_dataset(cls, dataset, **kwargs)
1089 if not isinstance(dataset.training, TriplesFactory):
1090 raise TypeError(f"{cls.name} requires access to labels, but dataset.training does not provide such.")
-> 1091 return cls.from_triples_factory(triples_factory=dataset.training, **kwargs)

File D:\anaconda3\envs\pytorch2\lib\site-packages\pykeen\nn\representation.py:1067, in TextRepresentation.from_triples_factory(cls, triples_factory, for_entities, **kwargs)
1053 """
1054 Prepare a text representations with labels from a triples factory.
1055
(...)
1064 a text representation from the triples factory
1065 """
1066 labeling: Labeling = triples_factory.entity_labeling if for_entities else triples_factory.relation_labeling
-> 1067 return cls(labels=labeling.all_labels(), **kwargs)

TypeError: init() missing 1 required positional argument: 'identifiers'
```

The error comes from the fact that class _CachedTextRepresentation_ need an argument _identifiers_ to be initialized, while the class method _.from_dataset_ only gives "labels".

### How to reproduce

```python
from pykeen.datasets import get_dataset
from pykeen.models import ERModel
from pykeen.nn import WikidataTextRepresentation
from pykeen.pipeline import pipeline

dataset = get_dataset(dataset="codexsmall")
entity_representations = WikidataTextRepresentation.from_dataset(dataset=dataset, encoder="transformer")`
```

### Environment

| Key             | Value                    |
|-----------------|--------------------------|
| OS              | nt                       |
| Platform        | Windows                  |
| Release         | 10                       |
| Time            | Wed Mar 22 18:14:11 2023 |
| Python          | 3.9.16                   |
| PyKEEN          | 1.10.1                   |
| PyKEEN Hash     | UNHASHED                 |
| PyKEEN Branch   |                          |
| PyTorch         | 2.0.0+cu118              |
| CUDA Available? | true                     |
| CUDA Version    | 11.8                     |
| cuDNN Version   | 8700                     |

### Additional information

_No response_

### Issue Template Checks

- [X] This is not a feature request (use a different issue template if it is)
- [X] This is not a question (use the [discussions](https://github.com/pykeen/pykeen/discussions/new) forum instead)
- [X] I've read the text explaining why including environment information is important and understand if I omit this information that my issue will be dismissed

@StarsMoon can you please share the full stack trace

> @StarsMoon can you please share the full stack trace

Sure. 

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[25], line 7
      4 from pykeen.pipeline import pipeline
      6 dataset = get_dataset(dataset="codexsmall")
----> 7 entity_representations = WikidataTextRepresentation.from_dataset(dataset=dataset, encoder="transformer")

File D:\anaconda3\envs\pytorch2\lib\site-packages\pykeen\nn\representation.py:1091, in TextRepresentation.from_dataset(cls, dataset, **kwargs)
   1089 if not isinstance(dataset.training, TriplesFactory):
   1090     raise TypeError(f"{cls.__name__} requires access to labels, but dataset.training does not provide such.")
-> 1091 return cls.from_triples_factory(triples_factory=dataset.training, **kwargs)

File D:\anaconda3\envs\pytorch2\lib\site-packages\pykeen\nn\representation.py:1067, in TextRepresentation.from_triples_factory(cls, triples_factory, for_entities, **kwargs)
   1053 """
   1054 Prepare a text representations with labels from a triples factory.
   1055 
   (...)
   1064     a text representation from the triples factory
   1065 """
   1066 labeling: Labeling = triples_factory.entity_labeling if for_entities else triples_factory.relation_labeling
-> 1067 return cls(labels=labeling.all_labels(), **kwargs)

TypeError: __init__() missing 1 required positional argument: 'identifiers'

This looks to be an artifact from renaming `labels` to `identifiers` in https://github.com/pykeen/pykeen/pull/1055 without adjusting this name in the base class `TextRepresentation`

Hi @StarsMoon,

the issue should be fixed now. Until our next release, you'll need to install from source as described here: https://github.com/pykeen/pykeen#installation--