markov
markov copied to clipboard
A generic markov chain implementation in Rust.
add methods to generate from a series of tokens, not just one.
If you attempt to load a previously saved chain where one of the tokens is >= 128 characters, the yaml parser throws an error that the key does not exist....
For a project I need to be able to reproduce the same generation multiple times so I've implemented a way to seed the random number generator, or provide your own...
Generating a graph of a chain with `chain.graph()` on string data produces the following structure: `petgraph::graph_impl::Graph
For a compression library we need an iterator over all tokens sorted by its probability. This PR adds this feature.