Update person_project_easy.py
Browse files- person_project_easy.py +4 -4
person_project_easy.py
CHANGED
@@ -51,12 +51,12 @@ class SyntheticProjectConnectivity(datasets.GeneratorBasedBuilder):
|
|
51 |
"""
|
52 |
Define dataset splits using a base URL and dynamically appending phase names.
|
53 |
"""
|
54 |
-
|
55 |
-
if not
|
56 |
-
raise ValueError("
|
57 |
|
58 |
# Construct the URL dynamically based on the phase
|
59 |
-
data_url = f"{_BASE_URL}{
|
60 |
|
61 |
# Download the file corresponding to the requested phase
|
62 |
downloaded_file = dl_manager.download_and_extract(data_url)
|
|
|
51 |
"""
|
52 |
Define dataset splits using a base URL and dynamically appending phase names.
|
53 |
"""
|
54 |
+
chunk_str = self.config.chunk
|
55 |
+
if not chunk_str:
|
56 |
+
raise ValueError("Chunk ID is not specified in the configuration.")
|
57 |
|
58 |
# Construct the URL dynamically based on the phase
|
59 |
+
data_url = f"{_BASE_URL}{chunk_str}_chunks.jsonl"
|
60 |
|
61 |
# Download the file corresponding to the requested phase
|
62 |
downloaded_file = dl_manager.download_and_extract(data_url)
|