Week1: Sequence generation vs. sampling sequence

Both of Sequence generation and sampling sequence are to generate output, What are the differences between ?

Are they both a way of performing inference on the language model ?

Can you give a reference to where in the course your question comes from?

Sequence generation is lectured in https://www.coursera.org/learn/nlp-sequence-models/lecture/gw1Xw/language-model-and-sequence-generation

sampling sequence is lectured in https://www.coursera.org/learn/nlp-sequence-models/lecture/MACos/sampling-novel-sequences

Thank you.

Sequence generation is how a language model works. One drawback is that after it’s trained, it will always give the same output for a specific input.

Sampling a sequence is a method to use the model to get a variety of different outputs. This is covered in the first 30 seconds of the sampling video.