dmmiller612 / bert-extractive-summarizer

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

Length of Final Summary #68

Closed paulowoicho closed 4 years ago

paulowoicho commented 4 years ago

Is there a way to control the length of the generated summary? Say for example, I want a summary that is just 5 sentences

dmmiller612 commented 4 years ago

Originally, it was designed to follow the gensim textrank, which is why it is a percentage. It shouldn't be too difficult to an exact number, though. I have been pretty busy lately, but if I get some time, I can look at adding that.

geshan commented 4 years ago

+1

caramdache commented 4 years ago

+1

pratikghanwat7 commented 4 years ago

+1

dmmiller612 commented 4 years ago

Updated in version 0.5.0. Updated docs in readme in how to use. Thanks for the suggestion!