Datasets:
Update
Browse files- WMT-16-PubMed.py +16 -16
WMT-16-PubMed.py
CHANGED
@@ -61,25 +61,25 @@ _URL = "https://huggingface.co/datasets/qanastek/WMT-16-PubMed/resolve/main/WMT1
|
|
61 |
class WMT_16_PubMed(datasets.GeneratorBasedBuilder):
|
62 |
"""WMT-16-PubMed dataset."""
|
63 |
|
64 |
-
BUILDER_CONFIGS = [
|
65 |
-
|
66 |
-
]
|
67 |
|
68 |
DEFAULT_CONFIG_NAME = "en-fr"
|
69 |
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
|
84 |
def _split_generators(self, dl_manager):
|
85 |
|
|
|
61 |
class WMT_16_PubMed(datasets.GeneratorBasedBuilder):
|
62 |
"""WMT-16-PubMed dataset."""
|
63 |
|
64 |
+
# BUILDER_CONFIGS = [
|
65 |
+
# datasets.BuilderConfig(name=name, version=datasets.Version("16.0.0"), description=_DESCRIPTION, citation=_CITATION) for name in _LANGUAGE_PAIRS
|
66 |
+
# ]
|
67 |
|
68 |
DEFAULT_CONFIG_NAME = "en-fr"
|
69 |
|
70 |
+
def _info(self):
|
71 |
+
src, target = self.config.name.split("-")
|
72 |
+
pair = (src, target)
|
73 |
+
return datasets.DatasetInfo(
|
74 |
+
description=_DESCRIPTION,
|
75 |
+
features=datasets.Features(
|
76 |
+
{"translation": datasets.features.Translation(languages=pair)}
|
77 |
+
),
|
78 |
+
supervised_keys=(src, target),
|
79 |
+
homepage="https://www.statmt.org/wmt16/biomedical-translation-task.html",
|
80 |
+
citation=_CITATION,
|
81 |
+
# license=_LICENSE,
|
82 |
+
)
|
83 |
|
84 |
def _split_generators(self, dl_manager):
|
85 |
|