Skip to content

A naive text generator built in Python using Markov chains · 🔗🤖💬

Notifications You must be signed in to change notification settings

khorovodovod/text-generator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Text Generator 🔗

Generates a random yet syntactically plausible-ish and meaningful-ish text using Markov chains and a bit of luck. Sometimes outputs “wise thoughts”™

Try Yourself! 👨‍💻

Open the app in the browser and upload a .txt file with the source text for word predictions. The more words this text contains, the better. More than 100k is perfect.

Or try in the console:

echo 'have idea have ikea!' > sample.txt
python3 -m cli --word-count=50 --sample-size=3 sample.txt

How it works 🛠

The generator uses Markov chains to randomly choose a word based on previously generated words. Read more about Markov chains, how text generation works, and how to create one of these generators:

About

A naive text generator built in Python using Markov chains · 🔗🤖💬

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%