Skip to content

Commit d7a93bc

Browse files
committed
Initial commit
0 parents  commit d7a93bc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+10969
-0
lines changed

.gitignore

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

Dockerfile

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
FROM jupyter/minimal-notebook:ae885c0a6226
2+
3+
# launchbot-specific labels
4+
LABEL name.launchbot.io="nlp_with_dl"
5+
LABEL workdir.launchbot.io="/home/jovyan"
6+
LABEL description.launchbot.io="Natural Language Processing with Deep Learning"
7+
LABEL 8888.port.launchbot.io="Jupyter Notebook"
8+
9+
#USER root
10+
11+
# Install requirements
12+
COPY requirements.txt /requirements.txt
13+
RUN pip install -r /requirements.txt
14+
15+
# Install pytorch
16+
RUN pip install http://download.pytorch.org/whl/cpu/torch-0.4.1-cp36-cp36m-linux_x86_64.whl \
17+
&& pip install torchvision
18+
19+
RUN jupyter nbextension enable --py widgetsnbextension
20+
21+
# Set the working directory
22+
WORKDIR /home/jovyan
23+
24+
# Add files
25+
COPY data/trump.csv /home/jovyan/data/trump.csv
26+
COPY data/surnames.csv /home/jovyan/data/surnames.csv
27+
COPY data/glove.6B.100d.txt /home/jovyan/data/glove.6B.100d.txt
28+
COPY data/firstnames.csv /home/jovyan/data/firstnames.csv
29+
COPY data/amazon_train_small.csv /home/jovyan/data/amazon_train_small.csv
30+
COPY data/surnames.csv /home/jovyan/data/surnames.csv
31+
COPY data/zhnews.csv /home/jovyan/data/zhnews.csv
32+
33+
COPY modelzoo/ /home/jovyan/modelzoo
34+
35+
COPY day_1 /home/jovyan/day_1
36+
COPY day_2 /home/jovyan/day_2
37+
38+
USER root
39+
RUN chown -R $NB_USER /home/jovyan/day_* \
40+
&& chmod -R 774 /home/jovyan/day_*
41+
USER $NB_USER
42+
43+
# Expose the notebook port
44+
EXPOSE 8888
45+
46+
# Start the notebook server
47+
CMD jupyter notebook --no-browser --port 8888 --ip=* --NotebookApp.token='' --NotebookApp.disable_check_xsrf=True

0 commit comments

Comments
 (0)