Skip to content

samagra14/ai_stories

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AI Stories

This project uses Markov Chains under the hood in order to generate new stories on the basis of your text. The larger the text file, the better is the grammar of the generated text.

Markov Chains

Markov chains, named after Andrey Markov, are mathematical systems that hop from one "state" (a situation or set of values) to another. For example, if you made a Markov chain model of a baby's behavior, you might include "playing," "eating", "sleeping," and "crying" as states, which together with other behaviors could form a 'state space': a list of all possible states. In addition, on top of the state space, a Markov chain tells you the probabilitiy of hopping, or "transitioning," from one state to any other state---e.g., the chance that a baby currently playing will fall asleep in the next five minutes without crying first.

Does it work well?

The Markov Chain built on word frequencies alone does not work too well, as it does not consider grammar or semantics. However, it will work well if you provide enough text.

This is useless. Why did you make this?

I was bored :)

About

Your own AI writer. Create the story of your choice !!!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published