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§
type Dictionary
Required Methods§
sourcefn tokenize(
&self,
input: &str,
mode: Mode,
enable_debug: bool,
) -> SudachiResult<MorphemeList<Self::Dictionary>>
fn tokenize( &self, input: &str, mode: Mode, enable_debug: bool, ) -> SudachiResult<MorphemeList<Self::Dictionary>>
Break text into Morpheme
s