Skip to content

This is repository for nlp tasks related nlp articles on tech blog

Notifications You must be signed in to change notification settings

smclab/blog-nlp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blog NLP

In this repository are present some jupyter notebooks and scripts related about Tech Blog Natural Language Processing articles series.

Repository Organization

This repository is organized in multiple folders. Every folder is related to specific article in Smc Tech Blog.

Execution in Docker Environment

All code is executable in Docker environment. There is a Docker Compose file that build an image based on Tensorflow with Jupyter Notebook integrated. (See Dockerfile inside nlp folder) The image contains also some default notebooks provided by tensorflow for some simple tutorials.

Inside nlp folder are presente the directiories for every task based on repository organization.

To build and run the container execute:

docker-compose up -d

You can see logs of servive typing:

docker-compose logs -f nlp

Below is an example of logs obtained from the previous command. From the logs you can see the link to access the Jupyter Notebooks. Copy url that begins with http://localhost:8888/?token= and paste it on your browser.

nlp  | [I 12:30:11.008 NotebookApp] Writing notebook server cookie secret to /root/.local/share/jupyter/runtime/notebook_cookie_secret
nlp  | [I 12:30:11.278 NotebookApp] Serving notebooks from local directory: /tf
nlp  | [I 12:30:11.278 NotebookApp] Jupyter Notebook 6.4.3 is running at:
nlp  | [I 12:30:11.278 NotebookApp] http://b5c600697c97:8888/?token=dadecfedb52a32ff30e0b8ed153a5b7076eaf7033e12d5eb
nlp  | [I 12:30:11.278 NotebookApp]  or http://127.0.0.1:8888/?token=dadecfedb52a32ff30e0b8ed153a5b7076eaf7033e12d5eb
nlp  | [I 12:30:11.278 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
nlp  | [C 12:30:11.283 NotebookApp]
nlp  |
nlp  |     To access the notebook, open this file in a browser:
nlp  |         file:///root/.local/share/jupyter/runtime/nbserver-1-open.html
nlp  |     Or copy and paste one of these URLs:
nlp  |         http://b5c600697c97:8888/?token=dadecfedb52a32ff30e0b8ed153a5b7076eaf7033e12d5eb
nlp  |      or http://127.0.0.1:8888/?token=dadecfedb52a32ff30e0b8ed153a5b7076eaf7033e12d5eb

To rebuild image type:

docker-compose build

To stop container run:

docker-compose down

The nlp directory is binded as external volumes, so all changes in notebooks inside container are saved.

About

This is repository for nlp tasks related nlp articles on tech blog

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published