Code for The Annotated Transformer blog post:
http://nlp.seas.harvard.edu/annotated-transformer/
The repository was forked from harvardnlp/annotated-transformer. The original README.md is here.
I enhanced the notebook to support the following features:
-
Support to run notebook in the Docker container.
-
Add Chinese code interpretation for code snapshot in the notebook.
Run the following command to build docker image:
docker build -t annotated-transformer -f rootfs/Dockerfile .
or
./build_image.sh
Run the following command to start a docker container:
./start.sh
or
docker run -d --gpu 1 --rm -p 8888:8888 annotated-transformer
Then, open the browser and input the following url: http://127.0.0.1:8888/lab