pub struct EncodeConfig {
pub max_words: usize,
pub min_freq: u32,
pub sort_order: SortOrder,
pub debug_dict_path: Option<PathBuf>,
}Expand description
Parameters controlling dictionary induction during preprocessing.
Fields§
§max_words: usizeApproximate maximum vocabulary size, including the 256 base byte symbols.
min_freq: u32Minimum frequency required for a merged word to be added and retained.
sort_order: SortOrderOutput vocabulary ordering.
debug_dict_path: Option<PathBuf>Optional path where frequency/coverage debug info is written (-D in preprocess.c).
Trait Implementations§
Source§impl Clone for EncodeConfig
impl Clone for EncodeConfig
Source§impl Debug for EncodeConfig
impl Debug for EncodeConfig
Source§impl Default for EncodeConfig
impl Default for EncodeConfig
impl Eq for EncodeConfig
Source§impl PartialEq for EncodeConfig
impl PartialEq for EncodeConfig
impl StructuralPartialEq for EncodeConfig
Auto Trait Implementations§
impl Freeze for EncodeConfig
impl RefUnwindSafe for EncodeConfig
impl Send for EncodeConfig
impl Sync for EncodeConfig
impl Unpin for EncodeConfig
impl UnsafeUnpin for EncodeConfig
impl UnwindSafe for EncodeConfig
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