diff --git a/charabia/Cargo.toml b/charabia/Cargo.toml index 6086c9ce..69562d5b 100644 --- a/charabia/Cargo.toml +++ b/charabia/Cargo.toml @@ -13,15 +13,13 @@ exclude = ["dictionaries/txt/thai/words.txt"] [dependencies] aho-corasick = "1.1.3" -cow-utils = "0.1" csv = "1.3.0" -deunicode = "1.6.0" either = "1.13.0" finl_unicode = { version= "1.2.0", optional = true } fst = "0.4" jieba-rs = { version = "0.7", optional = true } once_cell = "1.19.0" -serde = "1.0" +serde = "1.0.192" slice-group-by = "0.3.1" whatlang = "0.16.4" lindera = { version = "=0.32.2", default-features = false, optional = true } @@ -31,8 +29,6 @@ pinyin = { version = "0.10", default-features = false, features = [ wana_kana = { version = "3.0.0", optional = true } unicode-normalization = "0.1.23" irg-kvariants = { path = "../irg-kvariants", version = "=0.1.1" } -litemap = "0.7.3" -zerovec = "0.10.4" [features] default = ["chinese", "hebrew", "japanese", "thai", "korean", "greek", "latin-camelcase", "latin-snakecase", "khmer", "vietnamese"] diff --git a/charabia/src/detection/mod.rs b/charabia/src/detection/mod.rs index 0c5781b0..3bfa5d53 100644 --- a/charabia/src/detection/mod.rs +++ b/charabia/src/detection/mod.rs @@ -1,5 +1,3 @@ -use std::collections::HashMap; - pub use script_language::{Language, Script}; use whatlang::Detector; @@ -12,11 +10,11 @@ pub struct StrDetection<'o, 'al> { inner: &'o str, pub script: Option