Introduction
Different transformers are designed to handle specific tasks because each task needs the model to focus on different parts of the input and produce different kinds of output.
When you want to translate text from one language to another.
When you need to answer questions based on a paragraph.
When you want to summarize a long article into a short summary.
When you want to classify the sentiment of a sentence as positive or negative.
When you want to generate new text like writing a story or poem.