We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7818f91 commit 5af2333Copy full SHA for 5af2333
1 file changed
jieba/src/posseg.rs
@@ -36,7 +36,7 @@ fn parse_posseg_data(data: &str) -> PossegData {
36
let mut tags: Vec<Box<str>> = Vec::new();
37
let mut start_prob = [MIN_FLOAT; NUM_STATES];
38
// Initialize dense matrix to MIN_FLOAT
39
- let mut trans_prob = vec![[MIN_FLOAT; NUM_STATES]; NUM_STATES].into_boxed_slice();
+ let trans_prob = vec![[MIN_FLOAT; NUM_STATES]; NUM_STATES].into_boxed_slice();
40
let trans_prob: Box<[[f64; NUM_STATES]; NUM_STATES]> = unsafe {
41
let ptr = Box::into_raw(trans_prob) as *mut [[f64; NUM_STATES]; NUM_STATES];
42
Box::from_raw(ptr)
0 commit comments