Make list of filenames deterministic
#1
by
albertvillanova
HF staff
- opened
- 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):
|