forked from DengBoCong/nlp-dialogue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcheck.py
24 lines (20 loc) · 1.08 KB
/
check.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import os
if __name__ == '__main__':
work_path = os.getcwd()
# checkpoints 下的目录层级
if not os.path.exists(work_path + "\\dialogue\\checkpoints\\tensorflow"):
os.mkdir(work_path + "\\dialogue\\checkpoints\\tensorflow")
if not os.path.exists(work_path + "\\dialogue\\checkpoints\\pytorch"):
os.mkdir(work_path + "\\dialogue\\checkpoints\\pytorch")
# data下的目录层级
if not os.path.exists(work_path + "\\dialogue\\data\\history"):
os.mkdir(work_path + "\\dialogue\\data\\history")
if not os.path.exists(work_path + "\\dialogue\\data\\preprocess"):
os.mkdir(work_path + "\\dialogue\\data\\preprocess")
if not os.path.exists(work_path + "\\dialogue\\data\\pytorch"):
os.mkdir(work_path + "\\dialogue\\data\\pytorch")
# model 下的目录层级
if not os.path.exists(work_path + "\\dialogue\\models\\tensorflow"):
os.mkdir(work_path + "\\dialogue\\models\\tensorflow")
if not os.path.exists(work_path + "\\dialogue\\models\\pytorch"):
os.mkdir(work_path + "\\dialogue\\models\\pytorch")