Expand description
A simplistic & configurable Markov chain text generator
Give it a vec of strings and generate random results. Works best with tweets, chat history, news headlines…
Minimal example:
use markov_strings::*;
let data: Vec<InputData> = vec![/* a lot of data */];
let mut markov = Markov::new();
markov.add_to_corpus(data);
let result: MarkovResult = markov.generate().unwrap();
Structs§
- Import
Export - Struct used to import and export data.
- Input
Data - The input struct to build the markov-strings corpus.
- Markov
- The Markov chain generator
- Markov
Result - Struct holding the generator’s results.
Enums§
- Error
Type - Struct for possible errors during the corpus building, or result generation.