HubCloneHubClone
Tasks

Summarization

Summarization condenses a long document into a shorter text that keeps its key points.

Inputs

Input

The city council met for three hours to discuss the new tram line…

Summarization Model

Output

Output

The council approved the tram line and will start construction in spring.

About Summarization

Summarization condenses a long document into a shorter text that keeps its key points. Browse summarization models on HubClone to compare checkpoints, or open a Space to try one in the browser.

Use Cases

News digests

Turn long articles into a few sentences.

Meeting notes

Summarize transcripts into action items.

Inference

The Transformers pipeline API runs summarization models in a few lines. Replace <model-id> with any model listed on this page.

from transformers import pipeline

pipe = pipeline("summarization", model="<model-id>")
pipe("The city council met for three hours to discuss the new tram line…")

Useful Resources

Want to dig deeper into the topic? Great! Here is a hand-picked list of resources we found helpful.

Documentation

  • Summarization task guide
  • Pipelines reference

Notebooks

  • Fine-tuning a summarization model