ImportError for lemmy.pipe #11009
-
Hi smart people, I'm trying to use Lemmy as a SpaCy integration following the instructions here. However, when I try running import lemmy.pipe I get the error ImportError: cannot import name 'PRON_LEMMA' from 'spacy.symbols' . I'm at a loss - how do I get around this? I can't even find out what the exact issue is so finding a solution is tricky. I'm using python 3.8 and SpaCy 3.3.0 with the DaCy pipeline. Thank you for you input! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
This package hasn't been updated in a while and it looks like it only supports spacy v2. It probably wouldn't be difficult to update it for spacy v3 if you'd like to use with the DaCy pipelines. It would require the changes mentioned for "stateful class components" described in this upgrading guide: https://spacy.io/usage/v3#migrating-pipeline-components |
Beta Was this translation helpful? Give feedback.
-
@adrianeboyd After downgrading to spacy 2.1.0 it still gives the same import error. Is there any way around this import? |
Beta Was this translation helpful? Give feedback.
This package hasn't been updated in a while and it looks like it only supports spacy v2.
It probably wouldn't be difficult to update it for spacy v3 if you'd like to use with the DaCy pipelines. It would require the changes mentioned for "stateful class components" described in this upgrading guide: https://spacy.io/usage/v3#migrating-pipeline-components