zwn22 commited on
Commit
824c1eb
1 Parent(s): 85f09d4

Update NC_Crime.py

Browse files
Files changed (1) hide show
  1. NC_Crime.py +2 -2
NC_Crime.py CHANGED
@@ -91,10 +91,10 @@ class NCCrimeDataset(datasets.GeneratorBasedBuilder):
91
  # "https://raw.githubusercontent.com/znw2024/NC-Crime/main/DCCR.csv"
92
  "https://raw.githubusercontent.com/zening-wang2023/NC-Crime-Dataset/main/DCCR.csv.zip"
93
  )
94
-
95
  # Return a list of split generators
96
  return [
97
- datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": downloaded_file_path})
98
  ]
99
 
100
 
 
91
  # "https://raw.githubusercontent.com/znw2024/NC-Crime/main/DCCR.csv"
92
  "https://raw.githubusercontent.com/zening-wang2023/NC-Crime-Dataset/main/DCCR.csv.zip"
93
  )
94
+ unzipped_file_path = os.path.join(downloaded_dir_path, "DCCR.csv")
95
  # Return a list of split generators
96
  return [
97
+ datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": unzipped_file_path})
98
  ]
99
 
100