dmmiller612 / bert-extractive-summarizer

Easy to use extractive text summarization with BERT
MIT License
1.4k stars 308 forks source link

TypeError: 'Summarizer' object is not callable #146

Open Peiwen1234 opened 1 year ago

Peiwen1234 commented 1 year ago

I always have this problem when I run the following code. Please help me😭 Thank you Traceback (most recent call last): File "", line 1, in TypeError: 'Summarizer' object is not callable

from summarizer import Summarizer body = 'Text b.ody that you want to summarize with BERT' body2 = 'Something else you want to summarize with BERT' model = Summarizer() model(body) model(body2)