shibing624 commited on
Commit
15edcfb
1 Parent(s): fdecbb6

Update sts-sohu2021.py

Browse files
Files changed (1) hide show
  1. sts-sohu2021.py +1 -1
sts-sohu2021.py CHANGED
@@ -100,7 +100,7 @@ class Sohu(datasets.GeneratorBasedBuilder):
100
  for file in filepath:
101
  with open(file, encoding="utf-8") as f:
102
  for key, row in enumerate(f):
103
- if row:
104
  data = json.loads(row)
105
  yield id, {
106
  "sentence1": data["sentence1"],
 
100
  for file in filepath:
101
  with open(file, encoding="utf-8") as f:
102
  for key, row in enumerate(f):
103
+ if row and len(row) > 1:
104
  data = json.loads(row)
105
  yield id, {
106
  "sentence1": data["sentence1"],