Giter VIP home page Giter VIP logo

text-generation's Introduction

text-generation

In this project Shakespeare plays by LiamLarsen is used to create a deep learning model which will be able to generate text using some input text.

While doing all of this we will go through:

  • Preprocessing text data
  • Building multilayer Bidirectional LSTM model
  • Saving wording embeddings learned by the learning algorithm

Table of contents

Getting started

This deep learning model is trained using GPU and to work in the same environment having packages with versions which were used while making this notebook, go to Kaggle where the kernel is saved.

In Kaggle kernel you'll find embedding vectors and metadata which can be used to display embedding learned by the model using Tensorflow Projector.

Deep learning model performance

The data is text which has 4,583,798 words but only 500,000 words are used train the model. There is no validation or testing set. This model is trained for 20 epochs.

Image3 Image4

Model's performance by the last (20th) epoch

Image5

Text generated by the model

Image1 Image2

Word cloud for training text

Image6

License

APACHE LICENSE, VERSION 2.0

text-generation's People

Contributors

akashsdas avatar

Watchers

 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.