1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//! # markovify-rs
//!
//! A Rust implementation of a Markov chain text generator, inspired by [markovify](https://github.com/jsvine/markovify).
//!
//! Markovify-rs is a simple, extensible Markov chain generator. Its primary use is for building
//! Markov models of large corpora of text and generating random sentences from that.
//!
//! ## Basic Usage
//!
//! ```rust
//! use markovify_rs::Text;
//!
//! // Build the model
//! let text = "Hello world. This is a test. The quick brown fox jumps.";
//! let model = Text::new(text, 2, true, true, None).unwrap();
//!
//! // Generate a random sentence
//! if let Some(sentence) = model.make_sentence(None, None, None, None, None, None, None) {
//! println!("{}", sentence);
//! }
//!
//! // Generate a short sentence
//! if let Some(sentence) = model.make_short_sentence(100, None, None, None, None, None, None, None, None) {
//! println!("Short: {}", sentence);
//! }
//! ```
//!
//! ## Features
//!
//! - Configurable state size
//! - Sentence generation with overlap detection
//! - Model compilation for faster generation
//! - Model combination with weights
//! - JSON export/import for persistence
//! - Newline-delimited text support
pub use ;
pub use ;
pub use split_into_sentences;
pub use ;
pub use ;
/// Library version
pub const VERSION: &str = env!;