system HF staff commited on
Commit
8778d83
1 Parent(s): 3683aab

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 (1) hide show
  1. indic_glue.py +1 -3
indic_glue.py CHANGED
@@ -1,6 +1,5 @@
1
  """The IndicGLUE benchmark."""
2
 
3
- from __future__ import absolute_import, division, print_function
4
 
5
  import csv
6
  import json
@@ -8,7 +7,6 @@ import os
8
  import textwrap
9
 
10
  import pandas as pd
11
- import six
12
 
13
  import datasets
14
 
@@ -455,7 +453,7 @@ class IndicGlue(datasets.GeneratorBasedBuilder):
455
  ]
456
 
457
  def _info(self):
458
- features = {text_feature: datasets.Value("string") for text_feature in six.iterkeys(self.config.text_features)}
459
 
460
  if self.config.name.startswith("copa"):
461
  features["label"] = datasets.Value("int32")
 
1
  """The IndicGLUE benchmark."""
2
 
 
3
 
4
  import csv
5
  import json
 
7
  import textwrap
8
 
9
  import pandas as pd
 
10
 
11
  import datasets
12
 
 
453
  ]
454
 
455
  def _info(self):
456
+ features = {text_feature: datasets.Value("string") for text_feature in self.config.text_features.keys()}
457
 
458
  if self.config.name.startswith("copa"):
459
  features["label"] = datasets.Value("int32")