VictorSanh
commited on
Commit
·
2b2a2db
1
Parent(s):
d9cedcb
smaller thing to debug
Browse files
P3.py
CHANGED
@@ -123,7 +123,7 @@ def find_task_splits_and_features():
|
|
123 |
for stats in glob.glob(f"{_DATA_PATH}/*/stats.*.json"):
|
124 |
folder_path = os.path.dirname(stats)
|
125 |
task_name = folder_path.split("/")[-1]
|
126 |
-
if "
|
127 |
continue
|
128 |
split_name = os.path.basename(stats).split(".")[1]
|
129 |
|
@@ -152,7 +152,6 @@ def find_task_splits_and_features():
|
|
152 |
task_and_their_splits[task_name]["features"] = sorted(list(features.keys()))
|
153 |
else:
|
154 |
assert task_and_their_splits[task_name]["features"] == sorted(list(features.keys()))
|
155 |
-
print(task_and_their_splits.keys())
|
156 |
return task_and_their_splits
|
157 |
|
158 |
|
|
|
123 |
for stats in glob.glob(f"{_DATA_PATH}/*/stats.*.json"):
|
124 |
folder_path = os.path.dirname(stats)
|
125 |
task_name = folder_path.split("/")[-1]
|
126 |
+
if "adversarial_qa" not in task_name:
|
127 |
continue
|
128 |
split_name = os.path.basename(stats).split(".")[1]
|
129 |
|
|
|
152 |
task_and_their_splits[task_name]["features"] = sorted(list(features.keys()))
|
153 |
else:
|
154 |
assert task_and_their_splits[task_name]["features"] == sorted(list(features.keys()))
|
|
|
155 |
return task_and_their_splits
|
156 |
|
157 |
|