Add docstring for Segmenter type

This commit is contained in:
Dirkjan Ochtman 2020-12-07 14:38:41 +01:00
parent adf7995adb
commit cb3c9707ef
1 changed files with 1 additions and 0 deletions

View File

@ -7,6 +7,7 @@ use smartstring::alias::String;
#[cfg(feature = "__test_data")] #[cfg(feature = "__test_data")]
pub mod test_data; pub mod test_data;
/// Central data structure used to calculate word probabilities
pub struct Segmenter { pub struct Segmenter {
unigrams: HashMap<String, f64>, unigrams: HashMap<String, f64>,
bigrams: HashMap<(String, String), f64>, bigrams: HashMap<(String, String), f64>,