TakeLab / spacy-udpipe

spaCy + UDPipe
MIT License
159 stars 11 forks source link

Cannot use Uyghur 2.5 model #47

Open alexeyev opened 2 months ago

alexeyev commented 2 months ago

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 commented 3 weeks ago

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.