-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Linking to model success but not visible under spacy info. #934
Comments
Thanks for the report! This is interesting... I need to test this, might be related to the When you have a second, could you run the following code and tell me if it's getting the paths correctly and if not, which one fails / returns an empty list? from spacy.util import get_data_path
data_path = get_data_path()
print([p for p in data_path.iterdir()])
print([p for p in data_path.iterdir() if p.is_dir()])
print([p.parts[-1] for p in data_path.iterdir()])
print([p.parts[-1] for p in data_path.iterdir() if p.is_dir()]) |
@ines per your request:
|
Thanks! So it looks like the I think the problem might be this:
It somehow seems to be confused by the Windows path and thinks it's supposed to be a switch. What happens if you put the local path in quotes? |
@ines Same result
|
@ines digging around some more I noticed that in the util\link code it tests for python 2.x and if os is windows, it tries to use mlink.
I was able to manually link my model by calling the follow in cmd prompt (not powershell): Which resulted in spaCy recognizing my installed model:
|
I have submitted a pull request to fix the issue of bad paths sent to mklink: #942 |
Thanks so much for your analysis and submitting the PR 👍 The I hope there's no other |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I have downloaded the md model and running the link with:
However it doesn't seem to be linked under spacy :
Info about spaCy
The text was updated successfully, but these errors were encountered: