bert-extractive-summarizer: 'Summarizer' object is not callable
from summarizer import Summarizer
model = Summarizer()
No problem in running above two lines
result = model(a, min_length=60)
When I run this it says:
'Summarizer' object is not callable
About this issue
- Original URL
- State: open
- Created 4 years ago
- Comments: 16 (4 by maintainers)
Do all package installations on the desired project path in terminal and try these , also check venv is activated
import torchfrom summarizer.bert import Summarizerworked for me 😃