Closed sdvcn closed 2 months ago
https://github.com/HIT-SCIR/ltp/blob/main/rust/ltp-cffi/src/stnsplit.rs
for (idx, sentence) in sentences.iter().enumerate() { (callback.call)( callback.state, text.as_ptr(), sentence.len(), idx, sentence.len(), );
修改为
for (idx, sentence) in sentences.iter().enumerate() { (callback.call)( callback.state, sentence.as_ptr(), sentence.len(), idx, sentence.len(), );
https://github.com/HIT-SCIR/ltp/blob/main/rust/ltp-cffi/src/stnsplit.rs
修改为