Datasets:
wmt
/

Modalities:
Text
Libraries:
Datasets
File size: 895 Bytes
34be8c5
 
62a96d7
34be8c5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import datasets

from .wmt_utils import Wmt, WmtConfig


_URL = "http://www.statmt.org/wmt22/translation-task.html"
# TODO: Update with citation of overview paper once it is published.
_CITATION = """
@ONLINE {wmt22translate,
    author = {Wikimedia Foundation},
    title  = {EMNLP 2022 Seventh Conference on Machine Translation (WMT22), Shared Task: General Machine Translation},
    url    = {http://www.statmt.org/wmt22/translation-task.html}
}
"""

_LANGUAGE_PAIRS = [("sah", "ru")]


class Yakut(Wmt):

    BUILDER_CONFIGS = [
        WmtConfig(
            description=f"Yakut {l1}-{l2} translation dataset",
            url=_URL,
            citation=_CITATION,
            language_pair=(l1, l2),
            version=datasets.Version("1.0.0"),
        )
        for l1, l2 in _LANGUAGE_PAIRS
    ]

    @property
    def _subsets(self):
        return {datasets.Split.TRAIN: ["yakut"]}