Datasets:
Commit
·
fdecbb6
1
Parent(s):
4df098e
Update sts-sohu2021.py
Browse files- sts-sohu2021.py +2 -2
sts-sohu2021.py
CHANGED
|
@@ -100,8 +100,8 @@ 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"],
|
| 107 |
"sentence2": data["sentence2"],
|
|
|
|
| 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"],
|
| 107 |
"sentence2": data["sentence2"],
|