Problems with WMT dataset
{'login': 'eldarkurtic', 'id': 8884008, 'node_id': 'MDQ6VXNlcjg4ODQwMDg=', 'avatar_url': 'https://avatars.githubusercontent.com/u/8884008?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/eldarkurtic', 'html_url': 'https://github.com/eldarkurtic', 'followers_url': 'https://api.github.com/users/eldarkurtic/followers', 'following_url': 'https://api.github.com/users/eldarkurtic/following{/other_user}', 'gists_url': 'https://api.github.com/users/eldarkurtic/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/eldarkurtic/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/eldarkurtic/subscriptions', 'organizations_url': 'https://api.github.com/users/eldarkurtic/orgs', 'repos_url': 'https://api.github.com/users/eldarkurtic/repos', 'events_url': 'https://api.github.com/users/eldarkurtic/events{/privacy}', 'received_events_url': 'https://api.github.com/users/eldarkurtic/received_events', 'type': 'User', 'site_admin': False}
[{'id': 1935892857, 'node_id': 'MDU6TGFiZWwxOTM1ODkyODU3', 'url': 'https://api.github.com/repos/huggingface/datasets/labels/bug', 'name': 'bug', 'color': 'd73a4a', 'default': True, 'description': "Something isn't working"}
 {'id': 2067388877, 'node_id': 'MDU6TGFiZWwyMDY3Mzg4ODc3', 'url': 'https://api.github.com/repos/huggingface/datasets/labels/dataset%20bug', 'name': 'dataset bug', 'color': '2edb81', 'default': False, 'description': 'A bug in a dataset script provided in the library'}]
{'login': 'mariosasko', 'id': 47462742, 'node_id': 'MDQ6VXNlcjQ3NDYyNzQy', 'avatar_url': 'https://avatars.githubusercontent.com/u/47462742?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/mariosasko', 'html_url': 'https://github.com/mariosasko', 'followers_url': 'https://api.github.com/users/mariosasko/followers', 'following_url': 'https://api.github.com/users/mariosasko/following{/other_user}', 'gists_url': 'https://api.github.com/users/mariosasko/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/mariosasko/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/mariosasko/subscriptions', 'organizations_url': 'https://api.github.com/users/mariosasko/orgs', 'repos_url': 'https://api.github.com/users/mariosasko/repos', 'events_url': 'https://api.github.com/users/mariosasko/events{/privacy}', 'received_events_url': 'https://api.github.com/users/mariosasko/received_events', 'type': 'User', 'site_admin': False}
[{'login': 'mariosasko', 'id': 47462742, 'node_id': 'MDQ6VXNlcjQ3NDYyNzQy', 'avatar_url': 'https://avatars.githubusercontent.com/u/47462742?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/mariosasko', 'html_url': 'https://github.com/mariosasko', 'followers_url': 'https://api.github.com/users/mariosasko/followers', 'following_url': 'https://api.github.com/users/mariosasko/following{/other_user}', 'gists_url': 'https://api.github.com/users/mariosasko/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/mariosasko/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/mariosasko/subscriptions', 'organizations_url': 'https://api.github.com/users/mariosasko/orgs', 'repos_url': 'https://api.github.com/users/mariosasko/repos', 'events_url': 'https://api.github.com/users/mariosasko/events{/privacy}', 'received_events_url': 'https://api.github.com/users/mariosasko/received_events', 'type': 'User', 'site_admin': False}]
['Hi! Yes, the docs are outdated. Expect this to be fixed soon. \r\n\r\nIn the meantime, you can try to fix the issue yourself.\r\n\r\nThese are the configs/language pairs supported by `wmt15` from which you can choose:\r\n* `cs-en` (Czech - English)\r\n* `de-en` (German - English)\r\n* `fi-en` (Finnish- English)\r\n* `fr-en` (French - English)\r\n* `ru-en` (Russian - English)\r\n\r\nAnd the current implementation always uses all the subsets available for a language, so to define custom subsets, you\'ll have to clone the repo from the Hub and replace the line https://huggingface.co/datasets/wmt15/blob/main/wmt_utils.py#L688 with:\r\n`for split, ss_names in (self._subsets if self.config.subsets is None else self.config.subsets).items()`\r\n\r\nThen, you can load the dataset as follows:\r\n```python\r\nfrom datasets import load_dataset\r\ndset = load_dataset("path/to/local/wmt15_folder", "<one of 5 available configs>", subsets=...)'
 '@mariosasko thanks a lot for the suggested fix! '
 'Hi @mariosasko \r\n\r\nAre the docs updated? If not, I would like to get on it. I am new around here, would we helpful, if you can guide.\r\n\r\nThanks'
 'Hi @khushmeeet! The docs haven\'t been updated, so feel free to work on this issue. This is a tricky issue, so I\'ll give the steps you can follow to fix this:\r\n\r\nFirst, this code:\r\nhttps://github.com/huggingface/datasets/blob/7cff5b9726a223509dbd6224de3f5f452c8d924f/src/datasets/load.py#L113-L118\r\n\r\nneeds to be replaced with (makes the dataset builder search more robust and allows us to remove the ABC stuff from `wmt_utils.py`):\r\n```python\r\n    for name, obj in module.__dict__.items():\r\n        if inspect.isclass(obj) and issubclass(obj, main_cls_type):\r\n            if inspect.isabstract(obj):\r\n                continue\r\n            module_main_cls = obj\r\n            obj_module = inspect.getmodule(obj)\r\n            if obj_module is not None and module == obj_module:\r\n               break\r\n```\r\n\r\nThen, all the `wmt_utils.py` scripts need to be updated as follows (these are the diffs with the requiered changes):\r\n````diff\r\n import os\r\n import re\r\n import xml.etree.cElementTree as ElementTree\r\n-from abc import ABC, abstractmethod\r\n\r\n import datasets\r\n````\r\n\r\n````diff\r\nlogger = datasets.logging.get_logger(__name__)\r\n\r\n\r\n _DESCRIPTION = """\\\r\n-Translate dataset based on the data from statmt.org.\r\n+Translation dataset based on the data from statmt.org.\r\n\r\n-Versions exists for the different years using a combination of multiple data\r\n-sources. The base `wmt_translate` allows you to create your own config to choose\r\n-your own data/language pair by creating a custom `datasets.translate.wmt.WmtConfig`.\r\n+Versions exist for different years using a combination of data\r\n+sources. The base `wmt` allows you to create a custom dataset by choosing\r\n+your own data/language pair. This can be done as follows:\r\n\r\n ```\r\n-config = datasets.wmt.WmtConfig(\r\n-    version="0.0.1",\r\n+from datasets import inspect_dataset, load_dataset_builder\r\n+\r\n+inspect_dataset("<insert the dataset name", "path/to/scripts")\r\n+builder = load_dataset_builder(\r\n+    "path/to/scripts/wmt_utils.py",\r\n     language_pair=("fr", "de"),\r\n     subsets={\r\n         datasets.Split.TRAIN: ["commoncrawl_frde"],\r\n         datasets.Split.VALIDATION: ["euelections_dev2019"],\r\n     },\r\n )\r\n-builder = datasets.builder("wmt_translate", config=config)\r\n-```\r\n\r\n+# Standard version\r\n+builder.download_and_prepare()\r\n+ds = builder.as_dataset()\r\n+\r\n+# Streamable version\r\n+ds = builder.as_streaming_dataset()\r\n+```\r\n """\r\n````\r\n\r\n````diff\r\n+class Wmt(datasets.GeneratorBasedBuilder):\r\n     """WMT translation dataset."""\r\n+\r\n+    BUILDER_CONFIG_CLASS = WmtConfig\r\n\r\n     def __init__(self, *args, **kwargs):\r\n-        if type(self) == Wmt and "config" not in kwargs:  # pylint: disable=unidiomatic-typecheck\r\n-            raise ValueError(\r\n-                "The raw `wmt_translate` can only be instantiated with the config "\r\n-                "kwargs. You may want to use one of the `wmtYY_translate` "\r\n-                "implementation instead to get the WMT dataset for a specific year."\r\n-            )\r\n         super(Wmt, self).__init__(*args, **kwargs)\r\n\r\n     @property\r\n-    @abstractmethod\r\n     def _subsets(self):\r\n         """Subsets that make up each split of the dataset."""\r\n````\r\n```diff\r\n         """Subsets that make up each split of the dataset for the language pair."""\r\n         source, target = self.config.language_pair\r\n         filtered_subsets = {}\r\n-        for split, ss_names in self._subsets.items():\r\n+        subsets = self._subsets if self.config.subsets is None else self.config.subsets\r\n+        for split, ss_names in subsets.items():\r\n             filtered_subsets[split] = []\r\n             for ss_name in ss_names:\r\n                 dataset = DATASET_MAP[ss_name]\r\n```\r\n\r\n`wmt14`, `wmt15`, `wmt16`, `wmt17`, `wmt18`, `wmt19` and `wmt_t2t` have this script, so all of them need to be updated. Also, the dataset summaries from the READMEs of these datasets need to be updated to match the new `_DESCRIPTION` string. And that\'s it! Let me know if you need additional help.'
 'Hi @mariosasko ,\r\n\r\nI have made the changes as suggested by you and have opened a PR #4537.\r\n\r\nThanks'
 'Resolved via #4554 ']
## Describe the bug
I am trying to load WMT15 dataset and to define which data-sources to use for train/validation/test splits, but unfortunately it seems that the official documentation at [https://huggingface.co/datasets/wmt15#:~:text=Versions%20exists%20for,wmt_translate%22%2C%20config%3Dconfig)](https://huggingface.co/datasets/wmt15#:~:text=Versions%20exists%20for,wmt_translate%22%2C%20config%3Dconfig)) doesn't work anymore.

## Steps to reproduce the bug
```shell
>>> import datasets
>>> a = datasets.translate.wmt.WmtConfig()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'datasets' has no attribute 'translate'
>>> a = datasets.wmt.WmtConfig()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'datasets' has no attribute 'wmt'
```

## Expected results
To load WMT15 with given data-sources.

## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 2.0.0
- Platform: Linux-5.10.0-10-amd64-x86_64-with-glibc2.17
- Python version: 3.8.12
- PyArrow version: 7.0.0
- Pandas version: 1.4.1

{'url': 'https://api.github.com/repos/huggingface/datasets/issues/4354/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0}