dmmiller612 / bert-extractive-summarizer

Easy to use extractive text summarization with BERT
MIT License
1.38k stars 305 forks source link

Needs upgrade - Does not work with Spacy 2.3.1 #85

Open zdhernandez opened 3 years ago

zdhernandez commented 3 years ago

Please update requirements.txt The latest Spacy Models show a version of 2.3.1. The requirements file in this project needs a version of 2.1.3. When trying to use latest version of spacy to run an example, with other models, such as "es_core_news_lg", I get the following error.

/opt/conda/lib/python3.7/importlib/_bootstrap.py:219: RuntimeWarning: spacy.morphology.Morphology size changed, may indicate binary incompatibility. Expected 104 from C header, got 112 from PyObject return f(*args, **kwds) /opt/conda/lib/python3.7/importlib/_bootstrap.py:219: RuntimeWarning: spacy.vocab.Vocab size changed, may indicate binary incompatibility. Expected 96 from C header, got 112 from PyObject return f(*args, **kwds) /opt/conda/lib/python3.7/importlib/_bootstrap.py:219: RuntimeWarning: spacy.tokens.span.Span size changed, may indicate binary incompatibility. Expected 72 from C header, got 80 from PyObject return f(*args, **kwds) 100%|██████████| 40155833/40155833 [00:00<00:00, 49711772.21B/s]

Additional information:

ran test and got the following error: Traceback (most recent call last): File "/app/test.py", line 4, in <module> from summarizer import Summarizer File "/opt/conda/lib/python3.7/site-packages/summarizer/__init__.py", line 1, in <module> from summarizer.model_processors import Summarizer, TransformerSummarizer File "/opt/conda/lib/python3.7/site-packages/summarizer/model_processors.py", line 6, in <module> from summarizer.bert_parent import BertParent File "/opt/conda/lib/python3.7/site-packages/summarizer/bert_parent.py", line 9, in <module> logging.basicConfig(level=logging.WARNING) AttributeError: module 'transformers.utils.logging' has no attribute 'basicConfig'