pub struct GlobalConfig {
pub integrate_allomorph: bool,
pub cut_off_threshold: f32,
pub unk_form_score_scale: f32,
pub unk_form_score_bias: f32,
pub space_penalty: f32,
pub typo_cost_weight: f32,
pub max_unk_form_size: u32,
pub space_tolerance: u32,
}Expand description
Global runtime parameters for Kiwi inference behavior.
Fields§
§integrate_allomorph: boolWhether to integrate allomorph variants.
cut_off_threshold: f32Candidate cut-off threshold.
unk_form_score_scale: f32Scale applied to unknown-form score.
unk_form_score_bias: f32Bias applied to unknown-form score.
space_penalty: f32Penalty for spacing decisions.
typo_cost_weight: f32Weight applied to typo costs.
max_unk_form_size: u32Maximum unknown token length.
space_tolerance: u32Allowed whitespace tolerance during analysis.
Trait Implementations§
Source§impl Clone for GlobalConfig
impl Clone for GlobalConfig
Source§fn clone(&self) -> GlobalConfig
fn clone(&self) -> GlobalConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GlobalConfig
impl Debug for GlobalConfig
Source§impl Default for GlobalConfig
impl Default for GlobalConfig
impl Copy for GlobalConfig
Auto Trait Implementations§
impl Freeze for GlobalConfig
impl RefUnwindSafe for GlobalConfig
impl Send for GlobalConfig
impl Sync for GlobalConfig
impl Unpin for GlobalConfig
impl UnsafeUnpin for GlobalConfig
impl UnwindSafe for GlobalConfig
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