Skip to content

patrickwhite256/shakeskov

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shakeskov

I wanted to see how simple predictive text could be. The answer: stupidly simple.

This is a 1-gram Markov Chain sentence generator that uses Hamlet's seven soliloquys as the corpus.

Usage

The generator itself is written in pure Python (2/3) and is less than 100 lines: python sharkov.py

There's also a web wrapper for it. It uses Flask.

pip install -r requirements.txt
python server.py

See a live demo.

About

A simple Hamlet soliloquy sentence generator.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published