henon / Python.Included

A Python.NET based framework enabling .NET libraries to call into Python packages without depending on a local Python installation.
MIT License
321 stars 52 forks source link

How to install "spacy download en_core_web_sm" #27

Closed alishchytovych closed 3 years ago

alishchytovych commented 3 years ago

Kindly ask to suggest the best option how to emulate "python -m spacy download en_core_web_sm" command using Installer.

alishchytovych commented 3 years ago

The only way I've found is to use the direct link - Installer.PipInstallModule("https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.0.0/en_core_web_sm-3.0.0.tar.gz"); But it introduces the dependency risks.

henon commented 3 years ago

sorry, I have no solution off the top of my head. you could check the pythonnet source code if it handles the command line parameter "download" and what function it calls, if it exists.

alishchytovych commented 3 years ago

Ok, I'll check. Thank you for the right direction.