#markov-chain #text #generate #cli

app gmarkov

An app that uses markov chains to generate text

2 releases (1 stable)

1.0.0 May 8, 2019
0.0.1 May 7, 2019

#662 in Machine learning

MIT license

4KB
54 lines

Gmarkov

This is the CLI interface to go with my Markov chain library called [gmarkov-lib] (https://crates.io/crates/gmarkov-lib).

The program takes one filename as input for the Markov chain, - can be used to read stdin to feed the Markov chain.

The program creates a markov chain with an order specified by the -o or --order options defaults to 1

The program outputs lines of text based on the trained markov chain. The -n or --lines options can be used to specify the number of lines to output

Dependencies

~1MB
~16K SLoC