/nlp-docker-iamge

NLP work package docker image for jupyter

Primary LanguageJupyter Notebook

NLP Jupyter Envirnoment Docker Image:


  • This image builds an NLP environment for use in jupyter-lab
  • Deploy the container to a remote server.


Working Directory:

Our working Directory is structured as follows:

.
└── computer-vision-docker-image
    ├── dependecies
    │   ├── nlp-requirements.txt
    │   └── ubuntu-deps.sh
    ├── Code
    │   ├── model_pipeline.py
    │   └── pretrained_seq_clf.ipynb    
    ├── Dockerfile
    ├── docker-compose.yml
    └── ReadME.md

To build the image run the docker-compose build

 docker-compose build

If you need to make updates to the content of the container, e.g. installing new packages with pip- you can specify these in the nlp-requirements.txt file in the dependencies folder.



To launch the image run the docker-compose up

 docker-compose up

The docker run bash scripts allow for ease of launching into the container's jupyter-lab.
This docker run script uses docker-compose commands to achieve this.
Confirm port in docker-compose file is free to use prior to running the command.


 docker run --rm --user "container_user" -v "${PWD}/Code:/app" --runtime nvidia -p 8181:8888 -it nlp-env  

In any case ou have issues with using docker-compose up which tends to be a case where you cant save your files.
You can opt for this docker run command to launch container's jupyter-lab.
Confirm port is free to use prior to running the command.