pub struct MeCabOovPlugin { /* private fields */ }Expand description
provides MeCab oov nodes
Trait Implementations§
Source§impl Default for MeCabOovPlugin
impl Default for MeCabOovPlugin
Source§fn default() -> MeCabOovPlugin
fn default() -> MeCabOovPlugin
Returns the “default value” for a type. Read more
Source§impl OovProviderPlugin for MeCabOovPlugin
impl OovProviderPlugin for MeCabOovPlugin
Source§fn set_up(
&mut self,
settings: &Value,
config: &Config,
grammar: &mut Grammar<'_>,
) -> SudachiResult<()>
fn set_up( &mut self, settings: &Value, config: &Config, grammar: &mut Grammar<'_>, ) -> SudachiResult<()>
Loads necessary information for the plugin
Source§fn provide_oov(
&self,
input_text: &InputBuffer,
offset: usize,
other_words: CreatedWords,
result: &mut Vec<Node>,
) -> SudachiResult<usize>
fn provide_oov( &self, input_text: &InputBuffer, offset: usize, other_words: CreatedWords, result: &mut Vec<Node>, ) -> SudachiResult<usize>
Generate a list of oov nodes
offset - char idx
Auto Trait Implementations§
impl Freeze for MeCabOovPlugin
impl RefUnwindSafe for MeCabOovPlugin
impl Send for MeCabOovPlugin
impl Sync for MeCabOovPlugin
impl Unpin for MeCabOovPlugin
impl UnwindSafe for MeCabOovPlugin
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more