monsoon-nlp commited on
Commit
790fa90
·
verified ·
1 Parent(s): a484aa2
Files changed (1) hide show
  1. wheat-bees.py +2 -8
wheat-bees.py CHANGED
@@ -117,19 +117,13 @@ class PlantMultiSpeciesGenomes(datasets.GeneratorBasedBuilder):
117
  filepaths_txt = dl_manager.download_and_extract('plant_genome_file_names.txt')
118
  with open(filepaths_txt) as f:
119
  filepaths = [os.path.join("plant_genomes",filepath.rstrip()) for filepath in f]
120
-
121
- test_paths = filepaths[-2:] # 2 genomes for test set
122
- validation_paths = filepaths[-4:-2] # 2 genomes for validation set
123
- train_paths = filepaths[:-4] # 44 genomes for training
124
 
125
  train_downloaded_files = dl_manager.download_and_extract(train_paths)
126
- test_downloaded_files = dl_manager.download_and_extract(test_paths)
127
- validation_downloaded_files = dl_manager.download_and_extract(validation_paths)
128
 
129
  return [
130
  datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"files": train_downloaded_files, "chunk_length": self.config.chunk_length}),
131
- datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"files": validation_downloaded_files, "chunk_length": self.config.chunk_length}),
132
- datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"files": test_downloaded_files, "chunk_length": self.config.chunk_length}),
133
  ]
134
 
135
  # method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
 
117
  filepaths_txt = dl_manager.download_and_extract('plant_genome_file_names.txt')
118
  with open(filepaths_txt) as f:
119
  filepaths = [os.path.join("plant_genomes",filepath.rstrip()) for filepath in f]
120
+
121
+ train_paths = filepaths
 
 
122
 
123
  train_downloaded_files = dl_manager.download_and_extract(train_paths)
 
 
124
 
125
  return [
126
  datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"files": train_downloaded_files, "chunk_length": self.config.chunk_length}),
 
 
127
  ]
128
 
129
  # method parameters are unpacked from `gen_kwargs` as given in `_split_generators`