indraroy
commited on
Commit
·
dd0948a
1
Parent(s):
0c91760
path fixes
Browse files- isonetpp_loader.py +6 -6
isonetpp_loader.py
CHANGED
|
@@ -52,16 +52,16 @@ def _ensure_paths(
|
|
| 52 |
|
| 53 |
# Your actual saved names were like: train_aids240k_query_subgraphs.pkl (without extra underscore)
|
| 54 |
# So fix the minor formatting exactly:
|
| 55 |
-
query_fname = f"{
|
| 56 |
-
rel_fname = f"{
|
| 57 |
-
corpus_fname = f"{
|
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
# Where files are in repo
|
| 62 |
-
repo_query_path = f"splits/{mode}/{query_fname}"
|
| 63 |
-
repo_rel_path = f"splits/{mode}/{rel_fname}"
|
| 64 |
-
repo_corpus_path = f"corpus/{corpus_fname}"
|
| 65 |
|
| 66 |
# Download to cache (or local_root if provided)
|
| 67 |
kwargs = dict(repo_id=repo_id, repo_type="dataset")
|
|
|
|
| 52 |
|
| 53 |
# Your actual saved names were like: train_aids240k_query_subgraphs.pkl (without extra underscore)
|
| 54 |
# So fix the minor formatting exactly:
|
| 55 |
+
query_fname = f"{prefix}_{dataset_name}{pairs}_query_subgraphs.pkl"
|
| 56 |
+
rel_fname = f"{prefix}_{dataset_name}{pairs}_rel_nx_is_subgraph_iso.pkl"
|
| 57 |
+
corpus_fname = f"{dataset_name}{pairs}_corpus_subgraphs.pkl"
|
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
# Where files are in repo
|
| 62 |
+
repo_query_path = f"{size_folder}/splits/{mode}/{query_fname}"
|
| 63 |
+
repo_rel_path = f"{size_folder}/splits/{mode}/{rel_fname}"
|
| 64 |
+
repo_corpus_path = f"{size_folder}/corpus/{corpus_fname}"
|
| 65 |
|
| 66 |
# Download to cache (or local_root if provided)
|
| 67 |
kwargs = dict(repo_id=repo_id, repo_type="dataset")
|