Skip to content

Web Server uses Markov Chains sampling and source text to emulate ShakeSpeare based on a cleaned corpus of information.

Notifications You must be signed in to change notification settings

Jeffchiucp/Python-Tweet-Generator

Repository files navigation

Python Tweet Generator

Contributers · Jeff

Python Tweet Generator is a light weight Markov Model implemented into python

Installation

Installation is super friendly using pip

$ pip install 
$ python app.py

Documentation

Usage

Avaliable online at https://shakespeare-tweet.herokuapp.com

Example

**What are the key features of the application? **

-`app.py` - main script for my Flask Server, it uses other modules to generate sentences 
-`cleanup.py` - module for cleaning up source text and generates corpus.txt
- `histogram.py` - grabs a list of words from a body of text
- `dictogram.py` - refactoring histogram class to Dictogram class which helps to generates the random_weighted_words
- `sample.py` - handles all the percentage handling and creating a list of words+occurrences and makes a text file for it.
- `crawler.py` # module for creating lists of tokens from a text
- `markov.py` # Markov model module generating a sentence word from 81490 words of Shakespeare corpus
- `twitter.py` # calling the Twitter API  

About

Web Server uses Markov Chains sampling and source text to emulate ShakeSpeare based on a cleaned corpus of information.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published