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
51
52
53
54
55
56
57
//! mecrab-word2vec: Pure Rust Word2Vec implementation
//!
//! Fast, memory-efficient word2vec training optimized for Japanese morphological analysis.
//!
//! # Features
//!
//! - Skip-gram with negative sampling
//! - Multi-threaded training with Rayon
//! - Direct MCV1 format output
//! - Memory-efficient streaming
//!
//! # Example
//!
//! ```no_run
//! use mecrab_word2vec::Word2VecBuilder;
//!
//! let model = Word2VecBuilder::new()
//! .vector_size(100)
//! .window_size(5)
//! .negative_samples(5)
//! .min_count(10)
//! .epochs(3)
//! .threads(8)
//! .build()?;
//!
//! model.train_from_file("corpus.txt")?;
//! model.save_text("vectors.txt")?;
//! # Ok::<(), anyhow::Error>(())
//! ```
pub use ;
pub use Vocabulary;
use Error;
pub type Result<T> = Result;