Sequence generation produces an ordered series of tokens, characters, or other elements instead of a single label. A language model can generate text by guessing the next token repeatedly. section 16.1
One task, several sequence types
The same general idea appears in different domains: LSTMs generated music, recurrent networks generated handwriting from pen-position time series, and language models generated text by predicting the next token. section 16.1 section 16.1
A practical milestone was GPT: unsupervised language-model pretraining produced a next-token predictor that could later be fine-tuned for text classification tasks. section 16.1

