# Sentences in Abstractive Summarization

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fsentences-in-abstractive-summarization%2F4073%3E%5C
**Category:** Beginners\
**Created:** [March 2, 2021, 10:12am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fsentences-in-abstractive-summarization%2F4073 "2021-03-02T10:12:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![demegire](https://avatars.discourse-cdn.com/v4/letter/d/96bed5/32.png) [@demegire](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fdemegire)%5C
**Post date:** [March 2, 2021, 10:12am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fsentences-in-abstractive-summarization%2F4073%2F1 "2021-03-02T10:12:46Z")

</div>

Hi,

I am trying to use the summarization pipeline to summarize some text. I use BART and Pegasus, and often end up with sentences abruptly cut in half in the summaries. Is there a way to prevent this?

Also I would like to know if there is a way to set the ‘temperature’ in generating sentences. That is, how much the model sticks to its input instead of trying to generate original sentences.

Any help is appreciated, thank you!

---

<div class="post-metadata">

**Author:** ![raveenb](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/raveenb/32/987_2.png) [@raveenb](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fraveenb)%5C
**Post date:** [March 4, 2021, 5:56am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fsentences-in-abstractive-summarization%2F4073%2F2 "2021-03-04T05:56:42Z")

</div>

@demegire please view the discussion here [Summarization on long documents - #30 by marcoabrate](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fsummarization-on-long-documents%2F920%2F30)

I have not come across the concept of temperature on BART and Pegasus summarization yet, other experts perhaps have an opinion about it. If so I am also interested in it.
