jgontrum / spacy-api-docker

spaCy REST API, wrapped in a Docker container.
https://hub.docker.com/r/jgontrum/spacyapi/
MIT License
265 stars 99 forks source link

French model not working #13

Closed ghost closed 6 years ago

ghost commented 6 years ago

docker run -p "127.0.0.1:8080:80" jgontrum/spacyapi:fr

http://localhost:8080/ui

UI loads correctly, however any requests from the sentence entry simply do not return. The loading icon spins and nothing else happens.

I have tried en and en_v2. Both work as they should.

When testing this no other containers were running.

edit: curl commands fail as well.

curl -s localhost:80/dep -d '{"text":"Bonjour Justin Trudeau.", "model":"fr"}'

{"title":"Dependency parsing failed","description":"'NoneType' object is not callable"}

jgontrum commented 6 years ago

I just upgraded the API to use the current stable version of spaCy and the French model works now. Can you please try starting spacyapi:fr_v2 ?

ghost commented 6 years ago

It works now :)

thank you for the quick turn around!