Skip to content

Commit

Permalink
organize importgs
Browse files Browse the repository at this point in the history
  • Loading branch information
PedroTurik committed Jan 24, 2025
1 parent 1dce5b7 commit cdb2221
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charabia/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ japanese-segmentation-external = ["lindera/compress"]
japanese-transliteration = ["dep:wana_kana"]

# allow korean specialized tokenization
korean = ["korean-segmentation-external", "lindera/compress"]
korean = ["korean-segmentation-kodic", "lindera/compress"]
korean-segmentation-kodic = ["lindera/ko-dic"]
korean-segmentation-external = []

Expand Down
7 changes: 2 additions & 5 deletions charabia/src/segmenter/japanese.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
#[cfg(feature = "japanese-segmentation-external")]
use std::{env, path::PathBuf};

#[cfg(any(
feature = "japanese-segmentation-ipadic",
feature = "japanese-segmentation-unidic"
))]
#[cfg(not(feature = "japanese-segmentation-external"))]
use lindera::DictionaryKind;
#[cfg(feature = "japanese-segmentation-ipadic")]
use lindera::Penalty;
Expand Down
1 change: 1 addition & 0 deletions charabia/src/segmenter/korean.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#[cfg(feature = "korean-segmentation-external")]
use std::{env, path::PathBuf};

#[cfg(not(feature = "korean-segmentation-external"))]
Expand Down

0 comments on commit cdb2221

Please sign in to comment.