How to generate a sentence around words in Keras?
I know that how to generate next word in keras with lstm but how to predict previous word for example If you have two words like car and running then It should generate The car is running. How can we do this in keras ? I want to also make sure that generator should stop after completing the sentence. Thank you.
Topic keras tensorflow nlp
Category Data Science