o
    Ni-                     @   sl   d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlm	Z	 dZ
dZd	d
 dD ZG dd de	jZdS )zWMT17: Translate dataset.    )absolute_import)division)print_functionN)wmtz1http://www.statmt.org/wmt17/translation-task.htmla$  
@InProceedings{bojar-EtAl:2017:WMT1,
  author    = {Bojar, Ond{r}ej  and  Chatterjee, Rajen  and  Federmann, Christian  and  Graham, Yvette  and  Haddow, Barry  and  Huang, Shujian  and  Huck, Matthias  and  Koehn, Philipp  and  Liu, Qun  and  Logacheva, Varvara  and  Monz, Christof  and  Negri, Matteo  and  Post, Matt  and  Rubino, Raphael  and  Specia, Lucia  and  Turchi, Marco},
  title     = {Findings of the 2017 Conference on Machine Translation (WMT17)},
  booktitle = {Proceedings of the Second Conference on Machine Translation, Volume 2: Shared Task Papers},
  month     = {September},
  year      = {2017},
  address   = {Copenhagen, Denmark},
  publisher = {Association for Computational Linguistics},
  pages     = {169--214},
  url       = {http://www.aclweb.org/anthology/W17-4717}
}
c                 C   s   g | ]}|d fqS )en ).0langr   r   W/home/ubuntu/.local/lib/python3.10/site-packages/tensorflow_datasets/translate/wmt17.py
<listcomp>)   s    r   )csdefilvrutrzhc                   @   s*   e Zd ZdZdd eD Zedd ZdS )Wmt17Translatez>WMT 17 translation datasets for all {xx, "en"} language pairs.c              
   C   s8   g | ]\}}t jd ||f tt||ftjddqS )z(WMT 2017 %s-%s translation task dataset.z1.0.0)descriptionurlcitationlanguage_pairversion)r   	WmtConfig_URL	_CITATIONtfdscoreVersion)r   l1l2r   r   r
   r   1   s    

zWmt17Translate.<listcomp>c                 C   s.   t jjg dtj t jjg dt jjddgiS )N)europarl_v7europarl_v8_16commoncrawlnewscommentary_v12czeng_16yandexcorpuswikiheadlines_fiwikiheadlines_ru	setimes_2uncorpus_v1
rapid_2016leta_v1dcep_v1onlinebooks_v1)newsdev2017newstest2016newstestB2016newstest2017newstestB2017)r   SplitTRAINr   CWMT_SUBSET_NAMES
VALIDATIONTEST)selfr   r   r
   _subsets;   s   zWmt17Translate._subsetsN)__name__
__module____qualname____doc___LANGUAGE_PAIRSBUILDER_CONFIGSpropertyr:   r   r   r   r
   r   .   s    
r   )r>   
__future__r   r   r   tensorflow_datasets.public_api
public_apir   tensorflow_datasets.translater   r   r   r?   WmtTranslater   r   r   r   r
   <module>   s   