Write your Story: Using NLP

Abhiroop Bas
May 11, 2021
Natural Language Processing

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.

Output

Initial Storyline

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

Output story

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

Reference to original story used.

--

--