This is a simple flask based rest service which can be run as docker container. This is just to demo how spacy service would run on GKE.
- Clone the repository
- Go the the root directory of clone.
- Run
docker build -t spacy-server:1.0 .
docker run -p 8050:8050 spacy-server:1.0
curl -d '{"text":"This is a demo for running Spacy on GKE"}' -H "Content-Type: application/json" -X POST http://localhost:8050/extract-phrase
Expect the output
{"noun":["a demo","Spacy","GKE"],"verb":["running"]}