1. 04 3月, 2017 1 次提交
    • H
      dataset reader for wmt14 · d6c6a996
      Helin Wang 提交于
      example usage:
      
      import paddle.v2 as paddle
      
      if __name__ == '__main__':
          dict_en, dict_fr =	paddle.dataset.wmt14.build_dict()
          train = paddle.dataset.wmt14.train(dict_en, dict_fr)
          test = paddle.dataset.wmt14.test(dict_en, dict_fr)
      
          total_train = 0
          for i in train():
              total_train += 1
      
          total_test = 0
          for i in test():
              total_test += 1
      
          print total_train, total_test
      d6c6a996