pub struct SimpleOovPlugin { /* private fields */ }
Expand description
Provides a OOV node with single character if no words found in the dictionary
Trait Implementations§
source§impl Default for SimpleOovPlugin
impl Default for SimpleOovPlugin
source§fn default() -> SimpleOovPlugin
fn default() -> SimpleOovPlugin
Returns the “default value” for a type. Read more
source§impl OovProviderPlugin for SimpleOovPlugin
impl OovProviderPlugin for SimpleOovPlugin
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 SimpleOovPlugin
impl RefUnwindSafe for SimpleOovPlugin
impl Send for SimpleOovPlugin
impl Sync for SimpleOovPlugin
impl Unpin for SimpleOovPlugin
impl UnwindSafe for SimpleOovPlugin
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