pub struct GeneralizedWfstBuilder<'a, D>{ /* private fields */ }Expand description
Builder for Generalized WFST.
Implementations§
Source§impl<'a, D> GeneralizedWfstBuilder<'a, D>
impl<'a, D> GeneralizedWfstBuilder<'a, D>
Sourcepub fn max_distance(self, distance: u8) -> Self
pub fn max_distance(self, distance: u8) -> Self
Set the maximum distance.
Sourcepub fn with_standard_ops(self) -> Self
pub fn with_standard_ops(self) -> Self
Use standard operations.
Sourcepub fn with_transposition(self) -> Self
pub fn with_transposition(self) -> Self
Add transposition support.
Sourcepub fn with_merge_split(self) -> Self
pub fn with_merge_split(self) -> Self
Add merge/split support.
Sourcepub fn with_operations(self, operations: OperationSet) -> Self
pub fn with_operations(self, operations: OperationSet) -> Self
Use custom operations.
Sourcepub fn with_phonetic_digraphs(self) -> Self
pub fn with_phonetic_digraphs(self) -> Self
Add phonetic digraph operations.
Sourcepub fn build(self) -> Result<GeneralizedWfst<D>, String>
pub fn build(self) -> Result<GeneralizedWfst<D>, String>
Build the WFST.
Auto Trait Implementations§
impl<'a, D> Freeze for GeneralizedWfstBuilder<'a, D>
impl<'a, D> RefUnwindSafe for GeneralizedWfstBuilder<'a, D>
impl<'a, D> Send for GeneralizedWfstBuilder<'a, D>
impl<'a, D> Sync for GeneralizedWfstBuilder<'a, D>
impl<'a, D> Unpin for GeneralizedWfstBuilder<'a, D>
impl<'a, D> UnsafeUnpin for GeneralizedWfstBuilder<'a, D>
impl<'a, D> UnwindSafe for GeneralizedWfstBuilder<'a, D>
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