-
-
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
data missing after download? #578
Comments
On a related note: While it's good that models that don't exist aren't loaded and then incorrectly applied, it's still a bit surprising when the models in a pipeline are silently not applied. Maybe a one-time warning message indicating that the model was not found and thus could not be applied would clarify things? |
spaCy should probably do a bit more logging, yes. To clarify a bit about what's changed: previously, you had to download the data to even get the tokenizer. This was definitely unnecessary. The 1.0 release comes with a lot of language data packaged into code, so that you can get basic usage without the data download. The idea is to support people who just need a tokenizer etc. The downside is that now the user can be in two states: data present or data absent. This bug you've highlighted makes the problem much much worse. Clearly we'll fix the bug. But what about the two states? One solution is to log a warning, as you're suggesting. Probably that's best. Another solution is to make the user explicitly ask for the 'micro' state, and raise if they're trying to 'load' but can't. A related solution is to raise when an attribute that would be predicted by a model, e.g. a POS tag, is missing. Both of these seem to not work well if we want to assume that the pipeline is a flexible, user-defined thing. We can't map the attribute "tag" back to the action of |
This should be fixed now, although it's hard to test for, so I'll just cross my fingers... This took a surprisingly long time to sort out, because I still find the sputnik codebase very difficult. |
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. |
A week or so ago, I reported an issue where language models were giving nonsensical results, which you found to be the result of missing models improperly loaded. I've now run into the root cause once again: unexpectedly missing language models. I believe I've identified the reason. When installing models for either 'en' or 'de' with the
--force
option, all models are removed. I would expect it to only overwrite (remove then download) the models for the particular language.Here's an example:
The text was updated successfully, but these errors were encountered: