Skip to content

Commit

Permalink
fix wrong visibility modifier (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
zh217 authored Jun 1, 2024
1 parent 2736f41 commit 7f3b273
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hmm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7f3b273

Please sign in to comment.