Skip to content

seansullivan/markov-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Generate Markov chain from source file of text or string.

Tom Sawyer in plain format included courtesy of The Project Gutenberg(http://www.gutenberg.org).

Getting Started

Run php -f example.php to see what output can look like

Example Usage

$file_path = dirname(__FILE__).'/tom_sawyer.txt';
echo Markov::instance($file_path)->generate(20);

About

Generate Markov chains from text file in PHP.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages