pub struct Memm {
pub n_labels: usize,
pub n_features: usize,
pub weights: Vec<f64>,
pub start_label: usize,
}Expand description
Maximum-entropy Markov model: per-current-label softmax conditioned on the previous label and the current feature vector.
weights[prev * n_labels * n_features + cur * n_features + f]— weight of featureffor the transitionprev -> cur.
Fields§
§n_labels: usize§n_features: usize§weights: Vec<f64>§start_label: usizeImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Memm
impl RefUnwindSafe for Memm
impl Send for Memm
impl Sync for Memm
impl Unpin for Memm
impl UnsafeUnpin for Memm
impl UnwindSafe for Memm
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