bert-extractive-summarizer
bert-extractive-summarizer copied to clipboard
Needs upgrade - Does not work with Spacy 2.3.1
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:
- removed version numbers from requirements.txt
- did pip3 install --upgrade pip --no-cache-dir -r ./tmp/requirements.txt --use-feature=2020-resolver
- did python3 -m spacy download en_core_web_lg --use-feature=2020-resolver
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'