Datasets:

Modalities:
Text
Formats:
json
ArXiv:
License:

Added utf-8 encoding to gszip open as STS17 has multilingual data

#2
by rajathravi - opened
Files changed (1) hide show
  1. sts17-crosslingual-sts.py +1 -1
sts17-crosslingual-sts.py CHANGED
@@ -70,6 +70,6 @@ class STS17_CROSSLINGUAL(datasets.GeneratorBasedBuilder):
70
 
71
  def _generate_examples(self, text_path):
72
  """Yields examples."""
73
- with gzip.open(text_path,'rt') as f:
74
  for i, line in enumerate(f):
75
  yield i, json.loads(line)
 
70
 
71
  def _generate_examples(self, text_path):
72
  """Yields examples."""
73
+ with gzip.open(text_path,'rt',encoding='utf-8') as f:
74
  for i, line in enumerate(f):
75
  yield i, json.loads(line)