Datasets:

Languages:
Chinese
ArXiv:
License:
qian commited on
Commit
a5b2a26
1 Parent(s): f861f8d

Update T2Ranking.py

Browse files
Files changed (1) hide show
  1. T2Ranking.py +1 -1
T2Ranking.py CHANGED
@@ -180,7 +180,7 @@ class T2Ranking(datasets.GeneratorBasedBuilder):
180
 
181
  def _generate_examples(self, filepath):
182
  # data = pd.read_csv(filepath, sep='\t', quoting=3)
183
- reader = csv.DictReader(filepath, delimiter='\t')
184
  keys = _FEATURES_DICT[self.config.name].keys()
185
  idx = -1
186
  for data in reader:
 
180
 
181
  def _generate_examples(self, filepath):
182
  # data = pd.read_csv(filepath, sep='\t', quoting=3)
183
+ reader = csv.DictReader(open(filepath), delimiter='\t', quoting=csv.QUOTE_NONE)
184
  keys = _FEATURES_DICT[self.config.name].keys()
185
  idx = -1
186
  for data in reader: