mirror of
https://github.com/instant-labs/instant-segment.git
synced 2025-01-19 15:29:05 +00:00
Add docstring for Segmenter type
This commit is contained in:
parent
adf7995adb
commit
cb3c9707ef
@ -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<String, f64>,
|
||||
bigrams: HashMap<(String, String), f64>,
|
||||
|
Loading…
Reference in New Issue
Block a user