Closed maky-hnou closed 3 years ago
Have the same issue
Encountered the same issue, which's due to using a newer version of spaCy v3 instead of v2. I've locally fixed the error with two minor changes in coreference_handler.py under the directory (../site-packages/summarizer).
Just modify lines 10 & 24 as follows:
self.nlp.add_pipe("sentencizer")
return [c.text.strip() for c in doc.sents if max_length > len(c.text.strip()) > min_length]
Hope this help
@AMahfodh I changed file "sentence_handler.py" in the same directory and it works for me.
I haven't been able to solve this. Can you guys push an update with support for spacy v3? @AMahfodh
This has been on my list, but not really sure how to proceed, due to some libraries not being compatible with spacy 3.0 (like neural coref). I can update the sentence handler for now to try to work with 3.0 and fall back to 2.0.
Master currently has spacy 3 support as of this afternoon. I will push to pypi soon.
It has now been merged to pypi. To use, install bert-extractive-summarizer==0.7.0
Thank you @dmmiller612
I just installed bert-extractive-summarizer using
pip install bert-extractive-summarizer
(Python3).Then I wanted to try some examples, I run this command
from summarizer import Summarizer
But I got this error:Here are the packages that are already installed alongside with bert-extractive-summarizer:
Could it be an incompatibility with the new spacy version?