Seosnaps
commited on
Commit
•
9e6732a
1
Parent(s):
89f971e
Update count_n_shards.py
Browse files- count_n_shards.py +2 -2
count_n_shards.py
CHANGED
@@ -17,5 +17,5 @@ if __name__ == "__main__":
|
|
17 |
n_files_per_split = 0
|
18 |
n_files[lang][split] = n_files_per_split
|
19 |
|
20 |
-
|
21 |
-
|
|
|
17 |
n_files_per_split = 0
|
18 |
n_files[lang][split] = n_files_per_split
|
19 |
|
20 |
+
with open("n_shards.json", "w") as f:
|
21 |
+
json.dump(dict(sorted(n_files.items(), key=lambda x: x[0])), f, ensure_ascii=False, indent=4)
|