Write your Story: Using NLP

Natural Language Processing

Natural Language Processing, usually shortened as NLP, is a branch of artificial intelligence that deals with the interaction between computers and humans using the natural language.

The ultimate objective of NLP is to read, decipher, understand, and make sense of the human languages in a manner that is valuable.

Read more.

Word Prediction Model

The word prediction model can be developed and stored as a file. This can be further called upon to use the model.

Pre requisites include basic packages such as

  • numpy
  • keras
  • pickle
  • string

Find the entire model in the github repository.


The initial story line needs to be updated to enable the model catch on to the context and identify tokens.

As visible, the last two lines have been added by the algorithm and is in line with the story.

Reference to original story used.



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store