Commit
•
007ebd2
1
Parent(s):
a0a8c1e
Make list of filenames deterministic (#1)
Browse files- Sort filename list (43a37a81e25cf14bbfee98459c76289edde1eee9)
Co-authored-by: Albert Villanova <albertvillanova@users.noreply.huggingface.co>
- 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):
|