zwn22 commited on
Commit
b3aa8d0
1 Parent(s): 512524f

Update NC_Crime.py

Browse files
Files changed (1) hide show
  1. NC_Crime.py +2 -2
NC_Crime.py CHANGED
@@ -83,10 +83,10 @@ class NCCrimeDataset(datasets.GeneratorBasedBuilder):
83
  # Use the raw GitHub link to download the CSV file
84
  downloaded_file_path = dl_manager.download_and_extract(
85
  # "https://raw.githubusercontent.com/zening-wang2023/NC-Crime-Dataset/main/DCCR.csv.zip"
86
- "https://raw.githubusercontent.com/zening-wang2023/NC-Crime-Dataset/main/NC.csv.zip"
87
 
88
  )
89
- unzipped_file_path = os.path.join(downloaded_file_path, "NC.csv")
90
  # Return a list of split generators
91
  return [
92
  datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": unzipped_file_path})
 
83
  # Use the raw GitHub link to download the CSV file
84
  downloaded_file_path = dl_manager.download_and_extract(
85
  # "https://raw.githubusercontent.com/zening-wang2023/NC-Crime-Dataset/main/DCCR.csv.zip"
86
+ "https://raw.githubusercontent.com/zening-wang2023/NC-Crime-Dataset/main/NC_v1.csv.zip"
87
 
88
  )
89
+ unzipped_file_path = os.path.join(downloaded_file_path, "NC_v1.csv")
90
  # Return a list of split generators
91
  return [
92
  datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": unzipped_file_path})