Code Monkey home page Code Monkey logo

nlp-text-generation's Introduction

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.

nlp-text-generation's People

Contributors

rezan21 avatar dependabot[bot] avatar

Stargazers

 avatar  avatar

Watchers

James Cloos avatar Kostas Georgiou avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.