Open dcisic opened 1 year ago
!pip install bert-extractive-summarizer from summarizer import Summarizer,TransformerSummarizer
gives error
ImportError Traceback (most recent call last) ~\AppData\Local\Temp\ipykernel_9976\1836711224.py in 2 #from summarizer import Summarizer 3 #model = Summarizer() ----> 4 from summarizer import Summarizer,TransformerSummarizer 5 import spacy
ImportError: cannot import name 'Summarizer' from 'summarizer' (unknown location)
pip install git+https://github.com/huggingface/transformers pip install git+https://github.com/huggingface/transformers from transformers import Summarization
!pip install bert-extractive-summarizer from summarizer import Summarizer,TransformerSummarizer
gives error
ImportError Traceback (most recent call last) ~\AppData\Local\Temp\ipykernel_9976\1836711224.py in
2 #from summarizer import Summarizer
3 #model = Summarizer()
----> 4 from summarizer import Summarizer,TransformerSummarizer
5 import spacy
ImportError: cannot import name 'Summarizer' from 'summarizer' (unknown location)