Skip to content
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

Cannot use Uyghur 2.5 model #47

Open
alexeyev opened this issue Apr 20, 2024 · 1 comment
Open

Cannot use Uyghur 2.5 model #47

alexeyev opened this issue Apr 20, 2024 · 1 comment

Comments

@alexeyev
Copy link

Dear colleagues,

thank you for your work on this package!

When I try to use the pre-downloaded Uyghur model

nlp = spacy_udpipe.load_from_path(lang="ug",
                                      path="./resources/uyghur-udt-ud-2.5-191206.udpipe",
                                      meta={"description": "Uyghur 2.5 model."})

I receive the following error:

ImportError: [E048] Can't import language ug or any matching language from spacy.lang: No module named 'spacy.lang.ug'

Are there any proper solutions or workarounds for this issue?

Thanks in advance!

@mapto
Copy link

mapto commented Jun 6, 2024

I have a similar problem with Old Church Slavonic.

To me it seems that unlike spacy-stanza which provides the .load_pipeline() method for languages not supported by spacy, spacy-udpipe does not allow for such a scenario.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants