Skip to content

Commit 29d853f

Browse files
committed
added general scripts
1 parent 26de9c3 commit 29d853f

File tree

3 files changed

+134
-1
lines changed

3 files changed

+134
-1
lines changed

.gitignore

+126
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
.DS_Store
2+
.vscode/*
3+
4+
# Specific to this repository
5+
local/
6+
pilot/persistent/
7+
exp/
8+
tasks/*/kitchen/
9+
tasks/*/data/
10+
tasks/*/output/
11+
tasks/*/feats/
12+
tasks/*/tools/
13+
tasks/*/log*
14+
tasks/*/scripts/log*
15+
tasks/*/scripts/*tmp*
16+
17+
*.swp
18+
*.save
19+
log_*
20+
21+
# Byte-compiled / optimized / DLL files
22+
__pycache__/
23+
*.py[cod]
24+
*$py.class
25+
26+
# C extensions
27+
*.so
28+
29+
# Distribution / packaging
30+
.Python
31+
build/
32+
develop-eggs/
33+
dist/
34+
downloads/
35+
eggs/
36+
.eggs/
37+
lib/
38+
lib64/
39+
parts/
40+
sdist/
41+
var/
42+
wheels/
43+
*.egg-info/
44+
.installed.cfg
45+
*.egg
46+
MANIFEST
47+
48+
# PyInstaller
49+
# Usually these files are written by a python script from a template
50+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
51+
*.manifest
52+
*.spec
53+
54+
# Installer logs
55+
pip-log.txt
56+
pip-delete-this-directory.txt
57+
58+
# Unit test / coverage reports
59+
htmlcov/
60+
.tox/
61+
.coverage
62+
.coverage.*
63+
.cache
64+
nosetests.xml
65+
coverage.xml
66+
*.cover
67+
.hypothesis/
68+
.pytest_cache/
69+
70+
# Translations
71+
*.mo
72+
*.pot
73+
74+
# Django stuff:
75+
*.log
76+
local_settings.py
77+
db.sqlite3
78+
79+
# Flask stuff:
80+
instance/
81+
.webassets-cache
82+
83+
# Scrapy stuff:
84+
.scrapy
85+
86+
# Sphinx documentation
87+
docs/_build/
88+
89+
# PyBuilder
90+
target/
91+
92+
# Jupyter Notebook
93+
.ipynb_checkpoints
94+
95+
# pyenv
96+
.python-version
97+
98+
# celery beat schedule file
99+
celerybeat-schedule
100+
101+
# SageMath parsed files
102+
*.sage.py
103+
104+
# Environments
105+
.env
106+
.venv
107+
env/
108+
venv/
109+
ENV/
110+
env.bak/
111+
venv.bak/
112+
113+
# Spyder project settings
114+
.spyderproject
115+
.spyproject
116+
117+
# Rope project settings
118+
.ropeproject
119+
120+
# mkdocs documentation
121+
/site
122+
123+
# mypy
124+
.mypy_cache/
125+
126+

requirements.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,7 @@ matplotlib
66
tensorflow
77
torch
88
torchvision
9-
scikit-learn
9+
scikit-learn
10+
pypinyin
11+
pydub
12+
python-Levenshtein

src/logger.py

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
def print_log(s, log_path):
2+
print(s)
3+
with open(log_path, 'a+') as ouf:
4+
ouf.write("%s\n" % s)

0 commit comments

Comments
 (0)