rteabeault / AnkiSpacy

5 stars 1 forks source link

Installed languages don't show up in morphman #11

Open ghost opened 3 years ago

ghost commented 3 years ago

Installed languages get correctly installed inside spacy, but when one wants to choose that model in morphman they're not there.

ghost commented 3 years ago

Can anyone help me with this?

rteabeault commented 3 years ago

Hi @yaoberh. I abandoned this project in favor of the pull request here https://github.com/kaegi/MorphMan/pull/231. However, after months the Morphman maintainers have yet to merge it. In the meantime I have given up on Morphman and am using similar known word counting features in The Immerse with Migaku Browser Extension . This is an actively maintained and supported project, unlike Morphman.

ghost commented 3 years ago

Hey, tried your pull request and now the spacy models that showed up before don't show up at all. I much rather prefer this approach to migaku. If you have any guess and could help me make it work I'd appreciate it very much. Thanks for your time!

ghost commented 3 years ago

To be specific, this is the error I'm getting: DeprecationWarning: The command link is deprecated. ⚠ As of spaCy v3.0, model symlinks are deprecated. You can load trained pipeline packages using their full names or from a directory path.

ghost commented 3 years ago

And also this one: File "/home/yaoberh/.local/share/Anki2/addons21/900801631/init.py", line 37, in onMorphManPreferences preferencesDialog.main() File "/home/yaoberh/.local/share/Anki2/addons21/900801631/morph/preferencesDialog.py", line 400, in main mw.mm = PreferencesDialog(mw.morphemizerRegistry, mw) AttributeError: 'AnkiQt' object has no attribute 'morphemizerRegistry'

nlovell1 commented 3 years ago

@yaoberh had this issue, Spacy 3.0 is incompatible with the code used to link between it and Anki. Try downgrading to the previous version if you still want to experiment. Additionally, you'll find that even if you can get the Spacy models to work, it's often buggy and will not recalc properly or just crash entirely. Unfortunately that's the consequence of the project being unmaintained.