izhx commited on
Commit
6dcf185
1 Parent(s): 5d8dac8

Update stsb_multi_mt_extend.py

Browse files
Files changed (1) hide show
  1. 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(text_path) as f:
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)