mariosasko commited on
Commit
2ee917b
1 Parent(s): 0343951

Update wikipedia.py

Browse files
Files changed (1) hide show
  1. wikipedia.py +1 -1
wikipedia.py CHANGED
@@ -951,7 +951,7 @@ class Wikipedia(datasets.ArrowBasedBuilder):
951
  )
952
 
953
  def _split_generators(self, dl_manager):
954
- processed_data_dir = os.path.join("data", self.config.name)
955
  is_processed = os.path.exists(processed_data_dir)
956
  if is_processed:
957
  parquet_urls = sorted(os.path.join(processed_data_dir, parquet_file) for parquet_file in os.listdir(processed_data_dir))
 
951
  )
952
 
953
  def _split_generators(self, dl_manager):
954
+ processed_data_dir = os.path.join(dl_manager._base_path, "data", self.config.name)
955
  is_processed = os.path.exists(processed_data_dir)
956
  if is_processed:
957
  parquet_urls = sorted(os.path.join(processed_data_dir, parquet_file) for parquet_file in os.listdir(processed_data_dir))