Closed lightel closed 2 years ago
It turns out the compatibility.json file which is used for downloading the spacy model doesn't have version 3.2.0
anymore. Instead, they have a version 3.2
:
{
"spacy": {
"3.2": {
"ca_core_news_lg": [
"3.2.0"
],
...
@lightel did you resolve this particular issue? I am having the same problem.
Rafael says in his blog post:
After a bit of fiddling with how spaCy downloads and install models (and how they handle model compatibility across versions), I ended up reverse engineering the download logic and reimplementing it in C# to invoke directly the Installer.PipInstallModule method with the correct URL created for the installed spaCy version, language and model sizes requested by the user (similar to how the spaCy CLI invokes pip it in this line)
Did you resolve this by unpacking Rafael's code to redo that download logic? If so, can you share it?
Let me check here how to fix this, probably an easy fix on my side!
@lightel @Billyish just pushed a fix that should handle this case, could you test when it's published to nuget - should take an hour to be online (package version 1.0.24611)
Thanks @theolivenbaum I was about to post to say that I have worked out the issue myself. Good to have the package update though! I will check out your update.
Describe the bug I have a command-line .NET 5.0 application that uses
Catalyst
andCatalyst.Spacy
libraries (both have version 1.0.23862). I was following this guide to build a minimal application to analyze text with spacy.When I run the sample I get the following exception message:
To Reproduce Here is below the code to reproduce the issue: