Maxime
commited on
Commit
·
9599223
1
Parent(s):
432c06f
update train.json
Browse files- .gitignore +1 -0
- create_file.py +11 -0
.gitignore
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
original
|
create_file.py
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import json
|
2 |
+
|
3 |
+
|
4 |
+
with open("original/train.json") as f:
|
5 |
+
data = json.load(f)
|
6 |
+
|
7 |
+
|
8 |
+
with open("train.json", "w+") as f:
|
9 |
+
for line in data:
|
10 |
+
f.write(json.dumps(line, ensure_ascii=False) + "\n")
|
11 |
+
|