Skip to content

rtlee9/Trump-bot

 
 

Repository files navigation

Trump bot

Trump bot generates new speeches in Donald Trump's style using a word-level RNN and pre-trained GloVe word vectors. This repo corresponds to this Eight Portions blog post.

Usage: sampling

  • Pull docker image: docker pull rtlee/t-bot:sample
  • Run docker container: docker run -t -i rtlee/t-bot:sample /bin/bash
  • Update the git repo: git pull origin master
  • Sample from models: python sample.py "I will build a"

Usage: training

  • Pull docker image: docker pull rtlee/t-bot:train
  • Run docker container: docker run -t -i rtlee/t-bot:train /bin/bash
  • Update the git repo: git pull origin master
  • Train models
    • Modify training scripts as necessary: train_char.sh and train_word.sh
    • Run training scripts: ./train_char.sh and ./train_word.sh
  • Identify the best word and character level models and move to /cv/, replacing the existing files corresponding to the appropriate model type
  • Sample from models: python sample.py "I will build a"

Credits, inspiration and similar projects

This is a fork of Lars Hiller Eidnes' word-rnn, which is based on Andrej Karpathy's char-rnn.

Releases

No releases published

Packages

No packages published

Languages

  • Lua 76.6%
  • Jupyter Notebook 13.4%
  • Python 8.4%
  • Shell 1.6%