sudachi::analysis

Trait Tokenize

source
pub trait Tokenize {
    type Dictionary;

    // Required method
    fn tokenize(
        &self,
        input: &str,
        mode: Mode,
        enable_debug: bool,
    ) -> SudachiResult<MorphemeList<Self::Dictionary>>;
}
Expand description

Able to tokenize Japanese text

Required Associated Types§

Required Methods§

source

fn tokenize( &self, input: &str, mode: Mode, enable_debug: bool, ) -> SudachiResult<MorphemeList<Self::Dictionary>>

Break text into Morphemes

Implementors§