Update stsb_multi_mt_extend.py
Browse files- stsb_multi_mt_extend.py +1 -1
stsb_multi_mt_extend.py
CHANGED
@@ -77,6 +77,6 @@ class STSBMultilingual(datasets.GeneratorBasedBuilder):
|
|
77 |
for i, ins in enumerate(path_or_ds):
|
78 |
yield i, {'sentence1': ins['sentence1'], 'sentence2': ins['sentence2'], 'score': ins['similarity_score']}
|
79 |
else:
|
80 |
-
with open(
|
81 |
for i, line in enumerate(f):
|
82 |
yield i, json.loads(line)
|
|
|
77 |
for i, ins in enumerate(path_or_ds):
|
78 |
yield i, {'sentence1': ins['sentence1'], 'sentence2': ins['sentence2'], 'score': ins['similarity_score']}
|
79 |
else:
|
80 |
+
with open(path_or_ds) as f:
|
81 |
for i, line in enumerate(f):
|
82 |
yield i, json.loads(line)
|