jgontrum/spacyapi:en_v2 | Dependency parsing failed: Can't find model 'en'
Opened this issue · 2 comments
Deleted user commented
For some reason, the following:
{
'model': 'en',
'collapse_phrases': True,
'text': 'I paid him $100,- for nothing!',
'collapse_punctuation': False
}
Gives me
Dependency parsing failed: Can't find model 'en'
from the server.
I am running
docker run -p "127.0.0.1:8082:80" jgontrum/spacyapi:en_v2
Do I have to set another model name? I already tried en_v2
.
jgontrum commented
Ah, you're right. The reason is that in spaCy 2, the model names are more explicit. Can you try 'en_core_web_sm' as model name?
curl --request POST \ --url http://localhost:8082/dep/ \ --header 'content-type: application/json' \ --data '{ "model": "en_core_web_sm", "collapse_phrases": true, "text": "I paid him $100,- for nothing!", "collapse_punctuation": false }'
gives me a valid result.
jgontrum commented
I just updated the API to use the current stable spaCy version, so the value for model should be 'en' instead now.