Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

english spaCy models not found in spacy-en docker image #4789

Closed
Syndace opened this issue Nov 18, 2019 · 4 comments
Closed

english spaCy models not found in spacy-en docker image #4789

Syndace opened this issue Nov 18, 2019 · 4 comments
Assignees
Labels
area:rasa-oss 🎡 Anything related to the open source Rasa framework type:bug 🐛 Inconsistencies or issues which will cause an issue or problem for users or implementors.

Comments

@Syndace
Copy link

Syndace commented Nov 18, 2019

Rasa version: latest (1.5.0a1), also tested on 1.4.5 (most recent stable release)

Operating system (windows, osx, ...): running docker-ce on debian 10

Issue: When using the rasa/rasa:latest-spacy-en docker image, starting the HTTP API and trying to train NLU, the server reports that the spaCy models are not installed/linked. (Note: I also tried version 1.4.5). When using the rasa/rasa:latest-full docker image instead, there are no issues.

Error (including full traceback):

{"version":"1.5.0a1","status":"failure","message":"An unexpected error occurred during training. Error: Model 'en' is not a linked spaCy model.  Please download and\/or link a spaCy model, e.g. by running:\npython -m spacy download en_core_web_md\npython -m spacy link en_core_web_md en","reason":"TrainingError","details":{},"help":null,"code":500}

Command or request that led to error:

$ docker run -p 5005:5005 rasa/rasa:latest-spacy-en run --enable-api
$ curl --header "Content-Type: application/json" \
    --request POST \
    --data '{"config": "language: en\npipeline: pretrained_embeddings_spacy", "nlu": "## intent:test\n- Please run the tests\n", "force": true, "save_to_default_model_directory": true}' \
    http://localhost:5005/model/train

Content of configuration file (config.yml) (if relevant):

language: "en"
pipeline: "pretrained_embeddings_spacy"
@Syndace Syndace added the type:bug 🐛 Inconsistencies or issues which will cause an issue or problem for users or implementors. label Nov 18, 2019
@Syndace
Copy link
Author

Syndace commented Nov 18, 2019

I'm sorry, it looks like latest-full in fact has the same issue. It works as expected in version 1.4.1-full. Im going to test a few more tags and report my results by editing this comment.

EDIT: My results

Following tags work as expected:

  • 1.4.1-spacy-en
  • 1.4.1-full
  • 1.4.2-spacy-en
  • 1.4.2-full
  • 1.4.3-spacy-en
  • 1.4.3-full

Following tags don't:

  • 1.4.5-spacy-en
  • 1.4.5-full
  • latest-spacy-en
  • latest-full

So it looks like the spaCy model installation broke in 1.4.5, for all docker tags.

@sara-tagger
Copy link
Collaborator

Thanks for raising this issue, @erohmensing will get back to you about it soon✨

Please also check out the docs and the forum in case your issue was raised there too 🤗

@erohmensing
Copy link
Contributor

erohmensing commented Nov 20, 2019

Thanks for the detailed write up of what works! I'm looking into it. Seems that the linking in the docker build says that it works fine, but I can replicate the error with your training request (thanks for that btw)

@wochinge wochinge added the area:rasa-oss 🎡 Anything related to the open source Rasa framework label Dec 2, 2019
@wochinge wochinge mentioned this issue Dec 2, 2019
4 tasks
@Syndace
Copy link
Author

Syndace commented Dec 7, 2019

The issue is fixed in the current latest-image, thanks!

@Syndace Syndace closed this as completed Dec 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:rasa-oss 🎡 Anything related to the open source Rasa framework type:bug 🐛 Inconsistencies or issues which will cause an issue or problem for users or implementors.
Projects
None yet
Development

No branches or pull requests

4 participants