pub struct IpadicBuilder { /* private fields */ }Implementations§
Source§impl IpadicBuilder
impl IpadicBuilder
pub fn new(serializer: Box<dyn Send + Sync + DictionarySerializer>) -> Self
pub fn build_user_dict_from_data( &self, rows: &Vec<Vec<&str>>, ) -> LinderaResult<UserDictionary>
Trait Implementations§
Source§impl Default for IpadicBuilder
impl Default for IpadicBuilder
Source§impl DictionaryBuilder for IpadicBuilder
impl DictionaryBuilder for IpadicBuilder
fn build_dictionary( &self, input_dir: &Path, output_dir: &Path, ) -> LinderaResult<()>
fn build_user_dictionary( &self, input_file: &Path, output_file: &Path, ) -> LinderaResult<()>
fn build_chardef( &self, input_dir: &Path, output_dir: &Path, ) -> LinderaResult<CharacterDefinitions>
fn build_unk( &self, input_dir: &Path, chardef: &CharacterDefinitions, output_dir: &Path, ) -> LinderaResult<()>
fn build_dict(&self, input_dir: &Path, output_dir: &Path) -> LinderaResult<()>
fn build_cost_matrix( &self, input_dir: &Path, output_dir: &Path, ) -> LinderaResult<()>
fn build_user_dict(&self, input_file: &Path) -> LinderaResult<UserDictionary>
Auto Trait Implementations§
impl Freeze for IpadicBuilder
impl !RefUnwindSafe for IpadicBuilder
impl Send for IpadicBuilder
impl Sync for IpadicBuilder
impl Unpin for IpadicBuilder
impl !UnwindSafe for IpadicBuilder
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