diff --git a/Cargo.lock b/Cargo.lock index bba35b0..3e4fe9f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -610,7 +610,7 @@ checksum = "241eaef5fd12c88705a01fc1066c48c4b36e0dd4377dcdc7ec3942cea7a69956" [[package]] name = "litsea" -version = "0.3.0" +version = "0.3.2" dependencies = [ "rayon", "regex", @@ -624,7 +624,7 @@ dependencies = [ [[package]] name = "litsea-cli" -version = "0.3.0" +version = "0.3.2" dependencies = [ "clap", "ctrlc", diff --git a/Cargo.toml b/Cargo.toml index ed27120..a02f10d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ resolver = "3" members = ["litsea", "litsea-cli"] [workspace.package] -version = "0.3.1" +version = "0.3.2" edition = "2024" description = "Litsea is an extreamely compact word segmentation and model training tool implemented in Rust." documentation = "https://docs.rs/litsea" @@ -28,4 +28,4 @@ tempfile = "3.23.0" tokio = { version = "1.48.0", features = ["rt-multi-thread", "macros"] } tokio-test = "0.4.4" -litsea = { version = "0.3.1", path = "./litsea" } +litsea = { version = "0.3.2", path = "./litsea" } diff --git a/litsea/src/adaboost.rs b/litsea/src/adaboost.rs index 990fb05..60aa679 100644 --- a/litsea/src/adaboost.rs +++ b/litsea/src/adaboost.rs @@ -418,7 +418,7 @@ impl AdaBoost { /// # Returns: A result indicating success or failure. /// /// # Errors: Returns an error if the content cannot be parsed. - fn parse_model_content(&mut self, reader: R) -> std::io::Result<()> { + pub fn parse_model_content(&mut self, reader: R) -> std::io::Result<()> { let mut m: HashMap = HashMap::new(); let mut bias = 0.0;