Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
236 views
in Technique[技术] by (71.8m points)

python - How do you create RNN text generation according to the answers that you have in the input data

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...