Skip to content

Commit

Permalink
fix #709
Browse files Browse the repository at this point in the history
  • Loading branch information
AlongWY committed Sep 3, 2024
1 parent 68fdc0a commit 170a527
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rust/ltp-cffi/src/stnsplit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ pub extern "C" fn stn_split_with_options(
for (idx, sentence) in sentences.iter().enumerate() {
(callback.call)(
callback.state,
text.as_ptr(),
sentence.as_ptr(),
sentence.len(),
idx,
sentence.len(),
Expand Down
4 changes: 2 additions & 2 deletions rust/ltp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ rayon = { version = "1.5", optional = true }
# 序列化
serde = { version = "1.0", features = ["derive"], optional = true }
serde_json = { version = "1.0", optional = true }
apache-avro = { version = "0.16.0", optional = true }
apache-avro = { version = "0.17.0", optional = true }

# Todo: Nocopy Serialize 更快地加载速度
compact_str = { version = "0.8", optional = true }
Expand All @@ -68,5 +68,5 @@ serialization = ["serde", "serde_json", "apache-avro"]
[dev-dependencies]
clap = { version = "4", features = ["derive"] }

ndarray = "0.15"
ndarray = "0.16"
ndarray-npy = { version = "0.8", features = ["npz"] }

0 comments on commit 170a527

Please sign in to comment.