templates
- Template Gallery
- Get Started with Templates
Computer Vision
- Semantic Segmentation with Polygons
- Semantic Segmentation with Masks
- Object Detection with Bounding Boxes
- Keypoint Labeling
- Image Captioning
- Optical Character Recognition (OCR)
- Image Classification
- Visual Question Answering
- Object Detection with Ellipses
- Multi-Image Classification
- Multi-page Document Annotation
- Inventory Tracking
- Visual Genome
Natural Language Processing
- Question Answering
- Sentiment Analysis Text Classification
- Named Entity Recognition
- Taxonomy
- Relation Extraction
- Text Summarization
- Machine Translation
Audio/Speech Processing
- Automatic Speech Recognition
- Sound Event Detection
- Automatic Speech Recognition using Segments
- Signal Quality Detection
- Speaker Diarization
- Dialogue Analysis
- Intent Classification
- Audio Classification
- Audio Classification with Segments
- Voice Activity Detection
Conversational AI
- Response Generation
- Response Selection
- Coreference Resolution and Entity Linking
- Slot Filling and Intent Classification
Ranking and Scoring
- Pairwise Regression
- Document Retrieval
- Pairwise Classification
- Content-based Image Retrieval
- Website Rating
- ASR Hypotheses Selection
- Text-to-Image Generation
- Search Page Ranking
Structured Data Parsing
- Freeform Metadata
- PDF Classification
- Tabular Data
- HTML Entity Recognition
- HTML Classification
Time Series Analysis
- Time Series Forecasting
- Change Point Detection
- Activity Recognition
- Signal Quality
- Outliers and Anomaly Detection
- Time Series Classification
- Time Series Labeling
Videos
- Video Classification
- Video Timeline Segmentation
- Video Object Detection and Tracking
Template Galleries
- Template Gallery - Computer Vision
- Template Gallery - Natural Language Processing
- Template Gallery - Audio/Speech Processing
- Template Gallery - Conversational AI
- Template Gallery - Ranking & Scoring
- Template Gallery - Structured Data Parsing
- Template Gallery - Time Series Analysis
- Template Gallery - Videos
- Template Gallery - Dynamic Labels
Text Summarization

If you want to build a machine learning model to summarize text, use this template to create a dataset of one sentence summaries of text samples. You can also customize this template to ask for different types or lengths of summaries.
Interactive Template Preview
Labeling Configuration
<View>
<Header value="Please read the text" />
<Text name="text" value="$text" />
<Header value="Provide one sentence summary" />
<TextArea name="answer" toName="text"
showSubmitButton="true" maxSubmissions="1" editable="true"
required="true" />
</View>
About the labeling configuration
All labeling configurations must be wrapped in View tags.
You can add a header to provide instructions to the annotator:
<Header value="Please read the text" />
Use the Text object tag to display text:
<Text name="text" value="$text" />
Use the TextArea control tag to provide a text box with a submit button that annotators must type a summary into and can edit their responses:
<TextArea name="answer" toName="text"
showSubmitButton="true" maxSubmissions="1" editable="true"
required="true" />
Enhance this template
There are many ways to enhance this template.
Display text box next to the text to summarize
If you want to display the text box next to the text to summarize, do the following:
- Add flex display styling to the View tag for the labeling configuration:
<View style="display: flex;">
- Add new View tags to wrap the Header and the Text sample so that they display on the left.
- Wrap the TextArea and Header tags in View tags with the following CSS styling so that they display neatly on the right:
Your fully enhanced labeling configuration looks like the following:<View style="width: 50%; padding-right: 2em; margin-left: 2em;">
<View style="display: flex;"> <View> <Header value="Please read the text" /> <Text name="text" value="$text" /> </View> <View style="width: 50%; padding-right: 2em; margin-left: 2em;"> <Header value="Provide one sentence summary" /> <TextArea name="answer" toName="text" showSubmitButton="true" maxSubmissions="1" editable="true" required="true" /> </View>
Display long text samples with a scrollbar
If you want to change how Label Studio displays long text samples on the labeling interface, you can use the View tags to wrap labeling tags with CSS styling.
For example, you can constrain the text sample to a specific height, making it easier to keep the text summary that annotators provide visible.
<View style="height: 300px; overflow: auto;">
<Text name="text" value="$longText" />
</View>
In this case, the entire labeling configuration looks like the following:
<View>
<Header value="Please read the text" />
<View style="height: 300px; overflow: auto;">
<Text name="text" value="$longText" />
</View>
<Header value="Provide one sentence summary" />
<TextArea name="answer" toName="text"
showSubmitButton="true" maxSubmissions="1" editable="true"
required="true" />
</View>
Related tags

If you found an error, you can file an issue on GitHub!