dmmiller612 / bert-extractive-summarizer

Easy to use extractive text summarization with BERT
MIT License
1.39k stars 305 forks source link

Example code throwing error #26

Closed rajmati-GM closed 4 years ago

rajmati-GM commented 4 years ago

The sample code from the readme doesnt seem to work . Is something changed in the recent commits? Please suggest ---> 29 result = model(body, min_length=60) 30 full = ''.join(result) 31 print(full)

TypeError: 'Summarizer' object is not callable

dmmiller612 commented 4 years ago

You will need to pip install Bert-extractive-summarizer. https://github.com/dmmiller612/bert-extractive-summarizer/issues/24

rajmati-GM commented 4 years ago

@dmmiller612 , did pip install Bert-extractive-summarizer and re-ran I still get the same error.

image

dmmiller612 commented 4 years ago

you will have to uninstall the original summarizer package.

Sai-Bhavana commented 3 years ago

@dmmiller612 how to uninstall original summarizer

omkarhp commented 3 years ago

@Sai-Bhavana did you get a solution for the above thread? If yes, please share. Thanks in advance!

dejurin commented 2 years ago

summarizer

pip uninstall summarizer

PriyeshDave commented 2 years ago

@omkarhp Did you get solution to the error? I am getting the same error. Would really appreciate your help