Closed louiswang524 closed 2 years ago
Make sure that you use pip install bert-extractive-summarizer
rather than just summarizer (or make sure it isn't already installed). A lot of people have had issues with that. I may rename the base package in a future release.
That still does not solve the problem. Still getting the same error
A good way to test is using the docker image, or starting a virtualenv from scratch. This has been common issue for a lot of people, and when I get time, I will probably change the package name.
I got the error too, any update @dmmiller612 ?
Is there any update on this ? I am unable to import summarizer too
This has to do with clashing package names at installation. If you set up a virtualenv from scratch or run the docker image, you should not encounter this issue.
I set up a completely new environment a did all the steps, still the same issue. Could you specify if there is a specific version of the prerequisite packages?
I am also facing a similar issue.
uninstall the default summarizer package if it was installed explicitly before,
Just upgrade Bert extractive summarizer with pip install --upgrade bert-extractive-summarizer
import it and call, it should download a newer model
import torch
from summarizer import Summarizer
model = Summarizer()
This worked for me!
I am also facing a similar issue.
Me too, has anyone managed to find a solution
Facing same issue, tried everything. Any solution on this?
when i run 'from summarizer import Summarizer', there is an error said no module names summarizer.