pub struct Policy {
pub error_prior: f64,
pub false_correction_cost: f64,
pub minimum_zipf: f64,
pub known_ceiling: f64,
pub known_margin: f64,
pub short_known_margin: f64,
}Expand description
Reference scoring parameters. These are ranking hypotheses, not calibrated probabilities. Zipf values are log10 occurrences per billion words.
Fields§
§error_prior: f64Assumed layout-error prior, strictly between zero and one; the score adds its log10 odds.
false_correction_cost: f64Cost of a false automatic change, positive and finite; the score must reach its log10.
minimum_zipf: f64Minimum candidate corpus Zipf score, finite and in 0..=9.
known_ceiling: f64A known source word yields to the other reading only below this Zipf score, in 0..=9.
known_margin: f64Zipf margin by which the other reading must exceed a yielding known word, in 0..=9.
short_known_margin: f64Margin for a known word of two units without target-language context, in 0..=9.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Policy
impl RefUnwindSafe for Policy
impl Send for Policy
impl Sync for Policy
impl Unpin for Policy
impl UnsafeUnpin for Policy
impl UnwindSafe for Policy
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