/pos

Parts-of-Speech Parser

Primary LanguagePython

Parts-of-Speech Parser

This application takes a string of text as input and outputs identified noun phrases

Usage: <IP>/?q=QUERY

Dependancies

  1. Python 2.7 or 3.0
  2. Docker
  3. spacy

Running Locally

  1. docker build -t spacy_pre prebuild/. # This takes forever.
  2. docker build -t spacy_post development/.
  3. docker run -p 80:80 -p 5000:5000 spacy_post

After Starting a cloud instance

  1. copy login credentials command from quay
  2. docker pull quay/hilem/pos

Alternate Methods

  1. docker run -d -p 5000:5000 quay.io/hilem/pos

DOCKER Tips

  1. Attach to image an image within a bash shell
  • docker exec -i -t <CONTAINER_NAME> bash
  1. Delete Unused Images
  • docker rmi $(docker images --filter dangling=true -q)
  1. Read logs
  • docker logs --tail=all <CONTAINER_NAME>
  1. [OSx] IP of Docker containers...
  • boot2docker ip

Scratch ignore

  1. sudo gunicorn app:app -D -b 0.0.0.0:80
  2. <Add in missing step>