Commit ·
2b2a2db
1
Parent(s): d9cedcb
smaller thing to debug
Browse files122 unmodified lines12312412512612712812922 unmodified lines152153154155156157158122 unmodified linesfor stats in glob.glob(f"{_DATA_PATH}/*/stats.*.json"):folder_path = os.path.dirname(stats)task_name = folder_path.split("/")[-1]if "rte" not in task_name:continuesplit_name = os.path.basename(stats).split(".")[1]22 unmodified linestask_and_their_splits[task_name]["features"] = sorted(list(features.keys()))else:assert task_and_their_splits[task_name]["features"] == sorted(list(features.keys()))print(task_and_their_splits.keys())return task_and_their_splits122 unmodified lines12312412512612712812922 unmodified lines152153154155156157122 unmodified linesfor stats in glob.glob(f"{_DATA_PATH}/*/stats.*.json"):folder_path = os.path.dirname(stats)task_name = folder_path.split("/")[-1]if "adversarial_qa" not in task_name:continuesplit_name = os.path.basename(stats).split(".")[1]22 unmodified linestask_and_their_splits[task_name]["features"] = sorted(list(features.keys()))else:assert task_and_their_splits[task_name]["features"] == sorted(list(features.keys()))return task_and_their_splits
P3.py+1-2