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