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WMT16: Translate dataset.    )absolute_import)division)print_functionN)wmtz1http://www.statmt.org/wmt16/translation-task.htmlax  
@InProceedings{bojar-EtAl:2016:WMT1,
  author    = {Bojar, Ond{r}ej  and  Chatterjee, Rajen  and  Federmann, Christian  and  Graham, Yvette  and  Haddow, Barry  and  Huck, Matthias  and  Jimeno Yepes, Antonio  and  Koehn, Philipp  and  Logacheva, Varvara  and  Monz, Christof  and  Negri, Matteo  and  Neveol, Aurelie  and  Neves, Mariana  and  Popel, Martin  and  Post, Matt  and  Rubino, Raphael  and  Scarton, Carolina  and  Specia, Lucia  and  Turchi, Marco  and  Verspoor, Karin  and  Zampieri, Marcos},
  title     = {Findings of the 2016 Conference on Machine Translation},
  booktitle = {Proceedings of the First Conference on Machine Translation},
  month     = {August},
  year      = {2016},
  address   = {Berlin, Germany},
  publisher = {Association for Computational Linguistics},
  pages     = {131--198},
  url       = {http://www.aclweb.org/anthology/W/W16/W16-2301}
}
c                 C   s   g | ]}|d fqS )en ).0langr   r   W/home/ubuntu/.local/lib/python3.10/site-packages/tensorflow_datasets/translate/wmt16.py
<listcomp>)   s    r   )csdefirorutrc                   @   s*   e Zd ZdZdd eD Zedd ZdS )Wmt16Translatez>WMT 16 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 2016 %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Wmt16Translate.<listcomp>c                 C   s(   t jjg dt jjddgt jjddgiS )N)	europarl_v7europarl_v8_16commoncrawlnewscommentary_v11czeng_16preyandexcorpuswikiheadlines_fiwikiheadlines_ru	setimes_2newsdev2016newstest2015newstest2016newstestB2016)r   SplitTRAIN
VALIDATIONTEST)selfr   r   r
   _subsets;   s   zWmt16Translate._subsetsN)__name__
__module____qualname____doc___LANGUAGE_PAIRSBUILDER_CONFIGSpropertyr2   r   r   r   r
   r   .   s    
r   )r6   
__future__r   r   r   tensorflow_datasets.public_api
public_apir   tensorflow_datasets.translater   r   r   r7   WmtTranslater   r   r   r   r
   <module>   s   