Coder Social home page Coder Social logo

char-rnn's Introduction

Char-RNN

Description

An implementation of Char-RNN in keras trained on Donald Trump Twitter Archive (http://www.trumptwitterarchive.com/). Also added a command line interface

Installation

  1. Python3
  2. Keras (pip3 install keras)
  3. Tensorflow (pip3 install tensorflow)
  4. NumPy

Usage

Training

python3 train.py --mode train

Tweet Generation

python3 train.py --mode generate

Other commands

  1. --num_sentences -> to set number of sentences to generate
  2. --string -> to set starting string
  3. --num_chars -> to set number of characters present in tweet

Examples

[I, Donald J. Trump, president of the United] States "@NickTiller211: @realDonaldTrump I wish a great time in office. I will be on @foxandfriends at 8:30pm on @FoxNews and the first choice. We need you!...

[Despite the constant negative press cov]erage and the world will be an amazing show. "@DanScavino: I can't wait to see @realDonaldTrump the #Trump in the boardroom in Miami. He was ...

[Despite the constant negative press cov]er the announcement. Get out & VOTE today. I am really good and will not be with you! Great interview with @TheBrodyFile on @FoxNews this mor...

[China] is a great country in the border. #Trump2016 #Trump2016 https://t.co/bDb9JWZng4 "@Scheeker: @realDonaldTrump why did you be able to have you too bad. We need you for a presid...

[Love] the Chinese and have been on everyone who will live the single enemy in the new @politico. "@john_politics: @realDonaldTrump Anywhere you are a fan of the next season. With a

[Love] Democrats and the debt ceiling and confidence in the bad deal to the world of the U.S. Via @BreitbartNews by @KenyaMoore: "Donald Trump: http://t.co/ltbxRuOTt0 "@darennasfort:...

[Love] to Canada to spend the first time and a disaster. Protect our enemy! "@ari_a__an_laurn: @realDonaldTrump please run for President and see you tomorrow at Trump National Doral....

char-rnn's People

Contributors

soumilkanwal80 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.