Jupyter-based demo of the spaCy NLP library.
# NOTE: this incantation assumes you're running the command
# from the project root. Changes to files under notebooks
# will be written from client to host.
docker run -it \
-p 7777:9999 \
-v "${PWD}/notebooks:/app/notebooks" \
uazhlt/spacy-demo:latest
Open localhost:7777 and navigate to notebooks
to view the notebooks.
Generate html slides by launching a short-lived instance (container) of the image:
docker run -v "${PWD}/notebooks:/app/export" -it uazhlt/spacy-demo:latest jupyter nbconvert /app/export/spacy-demo.ipynb --to slides \
--SlidesExporter.reveal_theme=serif \
--SlidesExporter.reveal_scroll=True \
--SlidesExporter.reveal_transition=none
docker run -v "${PWD}/notebooks:/app/export" -it uazhlt/spacy-demo:latest jupyter nbconvert /app/export/spacy-demo.ipynb --to html
You may find these links useful:
You may find these links useful: