crystina-z
commited on
Commit
·
1850808
1
Parent(s):
8853685
Update xor-tydi.py
Browse files- xor-tydi.py +5 -4
xor-tydi.py
CHANGED
@@ -115,7 +115,8 @@ class XORTyDi(datasets.GeneratorBasedBuilder):
|
|
115 |
for line in f:
|
116 |
data = json.loads(line)
|
117 |
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
|
|
|
115 |
for line in f:
|
116 |
data = json.loads(line)
|
117 |
|
118 |
+
if "id" in data and "query_id" not in data:
|
119 |
+
yield process_dev_test_entry(data)
|
120 |
+
else:
|
121 |
+
yield process_train_entry(data)
|
122 |
+
|