Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 1.63 KB

README.md

File metadata and controls

32 lines (22 loc) · 1.63 KB

NLP-Text-Generation

AI Generates Shakespeare-alike poem. This is possible thorugh training the Recurrent Neural Network (RNN) on 5,000,000 text characters of Shakespeare's writings. Details of the technical implementation and model creation can be found in the nlp-text-generation.ipynb jupyter notebook.

Demo:

The trained model is deployed online, through Heroku, available at: ai-generated-shakespeare.herokuapp.com

Dataset

5,000,000 characters of Shakespeare's work. Dataset available at: MIT Website.

Used Libraries:

  • Tensorflow-gpu
  • Scikit-Learn
  • Pandas
  • NumPy

ML Model: Recurrent Neural Network (RNN)

A recurrent neural network (RNN) is a class of artificial neural networks where connections between nodes form a directed graph along a temporal sequence. This allows it to exhibit temporal dynamic behavior. Unlike feedforward neural networks, RNNs can use their internal state (memory) to process variable length sequences of inputs. This makes them applicable to tasks such as unsegmented, connected handwriting recognition or speech recognition. -Wikipedia

To run locally:

  1. git clone https://github.com/rezan21/NLP-Text-Generation.git and cd NLP-Text-Generation

  2. Install required libraries

    • pip install -r requirements.txt
  3. Run on localhost streamlit run app.py




Partial Credit to Jose Portilla.