From 7f3b27375b638bc22a2efe2fd889ea60130d265c Mon Sep 17 00:00:00 2001 From: Ziyang Hu Date: Sat, 1 Jun 2024 13:14:20 +0800 Subject: [PATCH] fix wrong visibility modifier (#113) --- src/hmm.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hmm.rs b/src/hmm.rs index 4258349..a9dcdfc 100644 --- a/src/hmm.rs +++ b/src/hmm.rs @@ -151,7 +151,7 @@ fn viterbi(sentence: &str, hmm_context: &mut HmmContext) { } #[allow(non_snake_case)] -pub fn cut_internal<'a>(sentence: &'a str, words: &mut Vec<&'a str>, hmm_context: &mut HmmContext) { +pub(crate) fn cut_internal<'a>(sentence: &'a str, words: &mut Vec<&'a str>, hmm_context: &mut HmmContext) { let str_len = sentence.len(); viterbi(sentence, hmm_context); let mut begin = 0;