Update T2Ranking.py
Browse files- 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:
|