Datasets:
wmt
/

Modalities:
Text
Libraries:
Datasets
albertvillanova HF staff commited on
Commit
f55f48f
1 Parent(s): e1ebc67

Add loading script

Browse files
Files changed (1) hide show
  1. yakut.py +34 -0
yakut.py ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import datasets
2
+
3
+ from wmt_utils import Wmt, WmtConfig
4
+
5
+
6
+ _URL = "http://www.statmt.org/wmt22/translation-task.html"
7
+ # TODO: Update with citation of overview paper once it is published.
8
+ _CITATION = """
9
+ @ONLINE {wmt22translate,
10
+ author = {Wikimedia Foundation},
11
+ title = {EMNLP 2022 Seventh Conference on Machine Translation (WMT22), Shared Task: General Machine Translation},
12
+ url = {http://www.statmt.org/wmt22/translation-task.html}
13
+ }
14
+ """
15
+
16
+ _LANGUAGE_PAIRS = [("sah", "ru")]
17
+
18
+
19
+ class Yakut(Wmt):
20
+
21
+ BUILDER_CONFIGS = [
22
+ WmtConfig(
23
+ description=f"Yakut {l1}-{l2} translation dataset",
24
+ url=_URL,
25
+ citation=_CITATION,
26
+ language_pair=(l1, l2),
27
+ version=datasets.Version("1.0.0"),
28
+ )
29
+ for l1, l2 in _LANGUAGE_PAIRS
30
+ ]
31
+
32
+ @property
33
+ def _subsets(self):
34
+ return {datasets.Split.TRAIN: ["yakut"]}