koenvervloesem / rasa-docker-arm

Rasa Docker image for ARMv7. Runs on a Raspberry Pi.
https://hub.docker.com/r/koenvervloesem/rasa
MIT License
19 stars 2 forks source link

Spacy pipeline support #4

Closed lucalazzaroni closed 3 years ago

lucalazzaroni commented 3 years ago

I managed to use your docker image on my Raspberry Pi 4B, but since I have to switch language from English to Italian, I need Spacy that seems not to be installed in the container. How can I do that?

These are the commands suggested on Spacy's website for the installation and download of the model:

pip install -U pip setuptools wheel
pip install -U spacy
python -m spacy download it_core_news_sm
koenvervloesem commented 3 years ago

You're not supposed to install packages in a running container, but you could try building a Docker image with spacy in it. Have a look at the upstream Dockerfiles, for instance the one for English: https://github.com/RasaHQ/rasa/blob/main/docker/Dockerfile.pretrained_embeddings_spacy_en

lucalazzaroni commented 3 years ago

Ok thank you for your quick response!