Open kapilkathuria opened 3 years ago
I am trying Abstractive summary with Pegasus by following the example code give here on huggingface:
https://huggingface.co/transformers/model_doc/pegasus.html#usage-example
here is my sample code and results:
it seems it produces summary of 1 line only. Is there way to get more than 1 line of summary?
add max_length and min_length in model.generate and set the size of token you want to generate
max_length
min_length
model.generate
example : model.generate(**tokens, max_length= 150, min_length=30)
model.generate(**tokens, max_length= 150, min_length=30)
I am trying Abstractive summary with Pegasus by following the example code give here on huggingface:
https://huggingface.co/transformers/model_doc/pegasus.html#usage-example
here is my sample code and results:
it seems it produces summary of 1 line only. Is there way to get more than 1 line of summary?