Skip to content

Latest commit

 

History

History
21 lines (12 loc) · 695 Bytes

README.md

File metadata and controls

21 lines (12 loc) · 695 Bytes

markov.py

Install

pip install lea==2.3.5  # Discrete probability distributions

Usage

make  # If you want to download [336k-word French dictionary](http://www.pallier.org/extra/liste.de.mots.francais.frgut.txt) demo/words.txt
python markov.py <filename>  # For example demo/text.txt

The output of python markov.py demo/music.txt can be played in trinket.io/music.

Example

je mange des camions

Cf. La Faute à l'algo episode 1 on YouTube (in French): génération procédurale et chaîne de Markov.