Datasets:

Languages:
English
License:
albertvillanova HF staff commited on
Commit
43a37a8
1 Parent(s): 6c68295

Sort filename list

Browse files
Files changed (1) hide show
  1. ebm_pico.py +1 -1
ebm_pico.py CHANGED
@@ -257,7 +257,7 @@ class EbmPico(datasets.GeneratorBasedBuilder):
257
  annotations_folder,
258
  f"hierarchical_labels/{annotation_types[0]}/{split_folder}/",
259
  )
260
- documents_in_split = os.listdir(docs_path)
261
 
262
  uid = 0
263
  for id_, document in enumerate(documents_in_split):
 
257
  annotations_folder,
258
  f"hierarchical_labels/{annotation_types[0]}/{split_folder}/",
259
  )
260
+ documents_in_split = sorted(os.listdir(docs_path))
261
 
262
  uid = 0
263
  for id_, document in enumerate(documents_in_split):