parameters: (src_dict_size, trg_dict_size, src_lang="en")
return_statement: return reader_creator(
          tar_file=paddle.dataset.common.download(DATA_URL, "wmt16", DATA_MD5,
                                                  "wmt16.tar.gz"),
          file_name="wmt16/test",
          src_dict_size=src_dict_size,
          trg_dict_size=trg_dict_size,
          src_lang=src_lang)
docstring: WMT16 test set reader.
  
      This function returns the reader for test data. Each sample the reader
      returns is made up of three fields: the source language word index sequence,
      target language word index sequence and next word index sequence.
  
      NOTE:
      The original like for test data is:
      http://www.quest.dcs.shef.ac.uk/wmt16_files_mmt/mmt16_task1_test.tar.gz
  
      paddle.dataset.wmt16 provides a tokenized version of the original dataset by
      using moses's tokenization script:
      https://github.com/moses-smt/mosesdecoder/blob/master/scripts/tokenizer/tokenizer.perl
  
      Args:
          src_dict_size(int): Size of the source language dictionary. Three
                              special tokens will be added into the dictionary:
                              <s> for start mark, <e> for end mark, and <unk> for
                              unknown word.
          trg_dict_size(int): Size of the target language dictionary. Three
                              special tokens will be added into the dictionary:
                              <s> for start mark, <e> for end mark, and <unk> for
                              unknown word.
          src_lang(string): A string indicating which language is the source
                            language. Available options are: "en" for English
                            and "de" for Germany.
  
      Returns:
          callable: The test reader.
docstring_summary: WMT16 test set reader.
docstring_tokens: WMT16 test set reader .
function: def test(src_dict_size, trg_dict_size, src_lang="en"):
      """
      WMT16 test set reader.
  
      This function returns the reader for test data. Each sample the reader
      returns is made up of three fields: the source language word index sequence,
      target language word index sequence and next word index sequence.
  
      NOTE:
      The original like for test data is:
      http://www.quest.dcs.shef.ac.uk/wmt16_files_mmt/mmt16_task1_test.tar.gz
  
      paddle.dataset.wmt16 provides a tokenized version of the original dataset by
      using moses's tokenization script:
      https://github.com/moses-smt/mosesdecoder/blob/master/scripts/tokenizer/tokenizer.perl
  
      Args:
          src_dict_size(int): Size of the source language dictionary. Three
                              special tokens will be added into the dictionary:
                              <s> for start mark, <e> for end mark, and <unk> for
                              unknown word.
          trg_dict_size(int): Size of the target language dictionary. Three
                              special tokens will be added into the dictionary:
                              <s> for start mark, <e> for end mark, and <unk> for
                              unknown word.
          src_lang(string): A string indicating which language is the source
                            language. Available options are: "en" for English
                            and "de" for Germany.
  
      Returns:
          callable: The test reader.
      """
  
      if src_lang not in ["en", "de"]:
          raise ValueError("An error language type. "
                           "Only support: en (for English); de(for Germany).")
  
      src_dict_size, trg_dict_size = __get_dict_size(src_dict_size, trg_dict_size,
                                                     src_lang)
  
      return reader_creator(
          tar_file=paddle.dataset.common.download(DATA_URL, "wmt16", DATA_MD5,
                                                  "wmt16.tar.gz"),
          file_name="wmt16/test",
          src_dict_size=src_dict_size,
          trg_dict_size=trg_dict_size,
          src_lang=src_lang)
function_tokens: def test ( src_dict_size , trg_dict_size , src_lang = "en" ) : if src_lang not in [ "en" , "de" ] : raise ValueError ( "An error language type. " "Only support: en (for English); de(for Germany)." ) src_dict_size , trg_dict_size = __get_dict_size ( src_dict_size , trg_dict_size , src_lang ) return reader_creator ( tar_file = paddle . dataset . common . download ( DATA_URL , "wmt16" , DATA_MD5 , "wmt16.tar.gz" ) , file_name = "wmt16/test" , src_dict_size = src_dict_size , trg_dict_size = trg_dict_size , src_lang = src_lang )