system HF staff commited on
Commit
12d83de
1 Parent(s): b64aa22

Update files from the datasets library (from 1.6.0)

Browse files

Release notes: https://github.com/huggingface/datasets/releases/tag/1.6.0

Files changed (2) hide show
  1. dataset_infos.json +0 -0
  2. xtreme.py +2 -4
dataset_infos.json CHANGED
The diff for this file is too large to render. See raw diff
 
xtreme.py CHANGED
@@ -1,6 +1,5 @@
1
  """TODO(xtreme): Add a description here."""
2
 
3
- from __future__ import absolute_import, division, print_function
4
 
5
  import csv
6
  import glob
@@ -8,8 +7,6 @@ import json
8
  import os
9
  import textwrap
10
 
11
- import six
12
-
13
  import datasets
14
 
15
 
@@ -71,6 +68,7 @@ _TATOEBA_LANG = [
71
  "spa",
72
  "swh",
73
  "tam",
 
74
  "tgl",
75
  "tha",
76
  "tur",
@@ -441,7 +439,7 @@ class Xtreme(datasets.GeneratorBasedBuilder):
441
 
442
  def _info(self):
443
  # TODO(xtreme): Specifies the datasets.DatasetInfo object
444
- features = {text_feature: datasets.Value("string") for text_feature in six.iterkeys(self.config.text_features)}
445
  if "answers" in features.keys():
446
  features["answers"] = datasets.features.Sequence(
447
  {"answer_start": datasets.Value("int32"), "text": datasets.Value("string")}
 
1
  """TODO(xtreme): Add a description here."""
2
 
 
3
 
4
  import csv
5
  import glob
 
7
  import os
8
  import textwrap
9
 
 
 
10
  import datasets
11
 
12
 
 
68
  "spa",
69
  "swh",
70
  "tam",
71
+ "tel",
72
  "tgl",
73
  "tha",
74
  "tur",
 
439
 
440
  def _info(self):
441
  # TODO(xtreme): Specifies the datasets.DatasetInfo object
442
+ features = {text_feature: datasets.Value("string") for text_feature in self.config.text_features.keys()}
443
  if "answers" in features.keys():
444
  features["answers"] = datasets.features.Sequence(
445
  {"answer_start": datasets.Value("int32"), "text": datasets.Value("string")}