Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot import name summarizer #151

Open
dcisic opened this issue Mar 3, 2023 · 1 comment
Open

cannot import name summarizer #151

dcisic opened this issue Mar 3, 2023 · 1 comment

Comments

@dcisic
Copy link

dcisic commented Mar 3, 2023

!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)

@Anaghdwivedi
Copy link

#write this code to separately install the transformer library and then import whatever we want
pip install git+https://github.com/huggingface/transformers
pip install git+https://github.com/huggingface/transformers
from transformers import Summarization

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants