# Questions about the sequence generation model

**URL:** <https://community.deeplearning.ai/t/questions-about-the-sequence-generation-model/93331>\
**Category:** Sequence Models\
**Tags:** coursera-platform\
**Created:** [January 30, 2022, 10:23pm UTC](https://community.deeplearning.ai/t/questions-about-the-sequence-generation-model/93331 "2022-01-30T22:23:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhuz11](https://avatars.discourse-cdn.com/v4/letter/z/258eb7/32.png) [@zhuz11](https://community.deeplearning.ai/u/zhuz11)\
**Post date:** [January 30, 2022, 10:23pm UTC](https://community.deeplearning.ai/t/questions-about-the-sequence-generation-model/93331/1 "2022-01-30T22:23:09Z")

</div>

In the video “Language model and sequence generation”, the output y\_hat\<2\> is a series of probabilities for different words in a dictionary, right? However, in the input of next step, y\<2\> is a one-hot function, so I am not sure how a series of probabilities transformed into a one-hot function. Did the system set the word with maximum probability to 1 and the rest for 0？

Another question, the one to many model is supposed to generate a sentence with just one starting word, right？

---

<div class="post-metadata">

**Author:** ![TMosh](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/tmosh/32/9321_2.png) [@TMosh](https://community.deeplearning.ai/u/TMosh)\
**Post date:** [April 21, 2022, 6:56am UTC](https://community.deeplearning.ai/t/questions-about-the-sequence-generation-model/93331/2 "2022-04-21T06:56:04Z")

</div>

Did you find an answer to your question?
