Skip to content

🤖 AI Generates shakespeare's-alike Poem | Python: Tensorflow, Recurrent Neural Networks (RNN), LSTM

License

Notifications You must be signed in to change notification settings

rezan21/NLP-Text-Generation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

🤖 AI Generates shakespeare's-alike Poem | Python: Tensorflow, Recurrent Neural Networks (RNN), LSTM

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published