Struct rustfst::algorithms::factor_weight::FactorWeightOptions
source · pub struct FactorWeightOptions {
pub delta: f32,
pub mode: FactorWeightType,
pub final_ilabel: Label,
pub final_olabel: Label,
pub increment_final_ilabel: bool,
pub increment_final_olabel: bool,
}
Expand description
Configuration to control the behaviour of the factor_weight
algorithm.
Fields§
§delta: f32
Quantization delta
mode: FactorWeightType
Factor transition weights and/or final weights
final_ilabel: Label
Input label of transition when factoring final weights.
final_olabel: Label
Output label of transition when factoring final weights.
increment_final_ilabel: bool
When factoring final w’ results in > 1 trs at state, increments ilabels to make distinct ?
increment_final_olabel: bool
When factoring final w’ results in > 1 trs at state, increments olabels to make distinct ?
Implementations§
source§impl FactorWeightOptions
impl FactorWeightOptions
pub fn new(mode: FactorWeightType) -> FactorWeightOptions
Trait Implementations§
source§impl Clone for FactorWeightOptions
impl Clone for FactorWeightOptions
source§fn clone(&self) -> FactorWeightOptions
fn clone(&self) -> FactorWeightOptions
Returns a copy 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 FactorWeightOptions
impl Debug for FactorWeightOptions
source§impl PartialEq for FactorWeightOptions
impl PartialEq for FactorWeightOptions
source§fn eq(&self, other: &FactorWeightOptions) -> bool
fn eq(&self, other: &FactorWeightOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for FactorWeightOptions
Auto Trait Implementations§
impl Freeze for FactorWeightOptions
impl RefUnwindSafe for FactorWeightOptions
impl Send for FactorWeightOptions
impl Sync for FactorWeightOptions
impl Unpin for FactorWeightOptions
impl UnwindSafe for FactorWeightOptions
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