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.
The trained model is deployed online, through Heroku, available at: ai-generated-shakespeare.herokuapp.com
5,000,000 characters of Shakespeare's work. Dataset available at: MIT Website.
- Tensorflow-gpu
- Scikit-Learn
- Pandas
- NumPy
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
-
git clone https://github.com/rezan21/NLP-Text-Generation.git
andcd NLP-Text-Generation
-
Install required libraries
pip install -r requirements.txt
-
Run on localhost
streamlit run app.py
Partial Credit to Jose Portilla.