giulio98 commited on
Commit
2a38672
·
verified ·
1 Parent(s): 2586e22

Update person_project_easy.py

Browse files
Files changed (1) hide show
  1. 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
- phase_str = self.config.phase
55
- if not phase_str:
56
- raise ValueError("Phase ID is not specified in the configuration.")
57
 
58
  # Construct the URL dynamically based on the phase
59
- data_url = f"{_BASE_URL}{phase_str}_chunks.jsonl"
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)