From the course: Deep Learning Foundations: Natural Language Processing with TensorFlow

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Challenge: Generate poetry

Challenge: Generate poetry - TensorFlow Tutorial

From the course: Deep Learning Foundations: Natural Language Processing with TensorFlow

Start my 1-month free trial

Challenge: Generate poetry

(upbeat music) - So based on whatever we have learned so far about ex-generation, here is a challenge for you. Now in this challenge, you have to generate poetry. Now, how would you do that? So we are going to take a text from Shakespeare's sonnet and we're going to train the model on that particular text. So once your model is trained on Shakespeare's poetry, there are chances that when you provide the seat text you would be able to generate poetry like Shakespeare. So here in this particular challenge, you have to fill up all the blanks where you see you are required to pass on the function or the radio and define the layers that you have to add to the model. So for example, you have to follow all of the steps that we discussed in the previous lesson. One by one, create a Corpus set up the tokenizer. Then make sure that you define all the layers of your model. Then visualize the metrics and you have to pass on the seat takes…

Contents