← Questions

Train a model to extract highlight snippets from text

0
FigmaML designLast asked Oct 2026

Each training example is a passage of text with the snippet that should be highlighted and its start and end positions. Complete a PyTorch training pipeline that learns to predict the highlighted span for a new passage, for example with a BERT-style model predicting start and end tokens. Ask the questions that pin down the task first (one span or several, character or token positions), then explain how you would evaluate it.

Your canvas
Draw your answer hereBoxes, arrows and notes, saved for you to come back to.Sign in to start drawing