From cb3c9707ef736497b1ace67abc0c3e8e91739c82 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Mon, 7 Dec 2020 14:38:41 +0100 Subject: [PATCH] Add docstring for Segmenter type --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index b5df6bb..5b9ea99 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -7,6 +7,7 @@ use smartstring::alias::String; #[cfg(feature = "__test_data")] pub mod test_data; +/// Central data structure used to calculate word probabilities pub struct Segmenter { unigrams: HashMap, bigrams: HashMap<(String, String), f64>,