Ask coding questions

← Back to all posts
How to Load spaCy 'Models'
Razputin

I am trying to use spaCy on Repl.it. I got the package installed, but I need to import a 'model' like en_core_web_sm. Unlike nltk, it appears (I believe) that you need to separately install the models from the Linux command line. Since the models are not listed as packages you can install when you click on the 3-D cube in Repl.it . . . how does one actually 'use' spaCy on Repl.it when you don't have root access to the command line to run a pip install etc....?

Answered by PattanAhmed [earned 5 cycles]
View Answer
Voters
Razputin
Comments
hotnewtop
PattanAhmed

@Razputin Hi,
You can use pip terminal here too!
By:
1. Press Ctrl + Shift + S
2. And type pip install package-name
3. You are done and you can import it in your file.
4. That's it

Hope this helps
Please mark my answer if this helps

MarkoPavlovic

Have you solved this?

Razputin

@MarkoPavlovic Yes, PattanAhmed answered it -
You can use pip terminal here too!
By:
1. Press Ctrl + Shift + S
2. And type pip install package-name
3. You are done and you can import it in your file.
4. That's it

MarkoPavlovic

@Razputin yeah but after some time i solved this also but the thing that got me unstuck was this https://docs.replit.com/tutorials/03-handling-dependencies-with-repl-it