hdvos / Twitterbot

A twitterbot that posts tweets generated with a trigram model. Can be trained on any reasonably sized text.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Twitterbot

A twitterbot that posts tweets generated with a trigram model. Can be trained on any reasonably sized text.

This repository contains:

  • main_sharable.py contains the main program. (The keys and tokens for the twitter api are left out.)
  • n_gram_sentence_generator.py contains functions for trianing the ngram model and and generate sentences.
  • support_funcs.py contains some functions for writing an reading files and other basic stuff.

TODO:

  • add more comments to clear op the code
  • make functions more efficient
  • make the trigram model a n-gram model

About

A twitterbot that posts tweets generated with a trigram model. Can be trained on any reasonably sized text.


Languages

Language:Python 100.0%