Skip to content

vochicong/datalab-nlp

Repository files navigation

NLP extension to Datalab

Quick start

cp .env.sample .env
set -a; source .env; set +a
docker-compose pull app
docker-compose up app

To use Snorkel, spaCy and Janome:

docker-compose up snorkel

Packages included

Service app includes:

Service snorkel includes:

Environment settings

Copy .env.sample to .env and edit it to define environment variables for Docker.

cp .env.sample .env
set -a; source .env; set +a

Build

docker-compose build

You can set up Docker Hub and GCR to build the image directly from your GitHub repository.

Run locally

docker-compose up app # start the container
docker-compose exec app bash # enter container
gcloud auth login # in container

Push

docker-compose push app # to Docker Hub

or

docker tag $IMAGE_NAME:$IMAGE_TAG gcr.io/$PROJECT_ID/datalab-nlp:latest
gcloud docker -- push gcr.io/$PROJECT_ID/datalab-nlp:latest

Pull

docker-compose pull app

or

gcloud docker -- pull gcr.io/$PROJECT_ID/datalab-nlp

Run on GCloud Datalab

From GCloud Shell, you should be able to run:

datalab create nlp --image-name $IMAGE_NAME:$IMAGE_TAG

or

datalab create nlp --image-name gcr.io/$PROJECT_ID/datalab-nlp:latest

Links

Issues

Releases

No releases published

Packages

No packages published

Languages