... If convicted, Barrientos faces up to four years in prison.  Her next court appearance is scheduled for May 18.
... """
```
Because the summarization pipeline depends on the PreTrainedModel.generate() method, we can override the default
arguments of PreTrainedModel.generate() directly in the pipeline for max_length and min_length as shown
below. This outputs the following summary:
```py
print(summarizer(ARTICLE, max_length=130, min_length=30, do_sample=False))
[{'summary_text': ' Liana Barrientos, 39, is charged with two counts of "offering a false instrument for filing in
the first degree" In total, she has been married 10 times, with nine of her marriages occurring between 1999 and
2002 . At one time, she was married to eight men at once, prosecutors say .'}]
```
Here is an example of doing summarization using a model and a tokenizer. The process is the following:
