accel-brain / accel-brain-code

The purpose of this repository is to make prototypes as case study in the context of proof of concept(PoC) and research and development(R&D) that I have written in my website. The main research topics are Auto-Encoders in relation to the representation learning, the statistical machine learning for energy-based models, adversarial generation networks(GANs), Deep Reinforcement Learning such as Deep Q-Networks, semi-supervised learning, and neural network language model for natural language processing.
https://accel-brain.co.jp
GNU General Public License v2.0
310 stars 92 forks source link

How to change the number of sentences in the output summary by pysummarization? #13

Closed smita181298 closed 4 years ago

smita181298 commented 4 years ago

I tried to evaluate pysummarization on the cnn dataset and observed that it always gives 10 sentences in the summary when the number of sentences in input text was varying from 20 to 100. How can I change the number of sentences in the output summary? Where do I need to make changes in the code?

accel-brain commented 4 years ago

What class did you use?

smita181298 commented 4 years ago

Got it in TopRankAbstractor class where __top_n = 10 which can be changed.