For example, the model would generate questions from a given sentence.
Like, "Python is a programming language" to "What is Python?".
How can I make the model train according to the two inputs I give it and generate questions according to it?
This would be an example of what the model would train off of:
("Python is very beginner friendly" : "Is python beginner friendly?")
("Programming is fun" : "Is programming fun?")
I know I first need to tokenize the sentences but all the text generation tutorials I see are ones where text is inserted and the model just outputs more text similarly rather than matching an expected output.
question from:
https://stackoverflow.com/questions/65545683/how-do-you-create-rnn-text-generation-according-to-the-answers-that-you-have-in 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…