-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Makefile
40 lines (27 loc) · 1.53 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
notebook: the_annotated_transformer.py
jupytext --to ipynb the_annotated_transformer.py
py: the_annotated_transformer.ipynb
jupytext --to py:percent the_annotated_transformer.ipynb
the_annotated_transformer.ipynb: the_annotated_transformer.py
jupytext --to ipynb the_annotated_transformer.py
execute: the_annotated_transformer.py
jupytext --execute --to ipynb the_annotated_transformer.py
html: the_annotated_transformer.ipynb
jupytext --execute --to ipynb the_annotated_transformer.py
jupyter nbconvert --to html the_annotated_transformer.ipynb
the_annotated_transformer.md: the_annotated_transformer.ipynb
jupyter nbconvert --to markdown --execute the_annotated_transformer.ipynb
blog: the_annotated_transformer.md
pandoc docs/header-includes.yaml the_annotated_transformer.md --katex=/usr/local/lib/node_modules/katex/dist/ --output=docs/index.html --to=html5 --css=docs/github.min.css --css=docs/tufte.css --no-highlight --self-contained --metadata pagetitle="The Annotated Transformer" --resource-path=/home/srush/Projects/annotated-transformer/ --indented-code-classes=nohighlight
flake: the_annotated_transformer.ipynb
flake8 --show-source the_annotated_transformer.py
black: the_annotated_transformer.ipynb
black --line-length 79 the_annotated_transformer.py
clean:
rm -f the_annotated_transformer.ipynb
# see README.md - IWSLT needs to be downloaded manually to obtain 2016-01.tgz
move-dataset:
mkdir -p ~/.torchtext/cache/IWSLT2016
cp 2016-01.tgz ~/.torchtext/cache/IWSLT2016/.
setup: move-dataset
pip install -r requirements.txt