pub struct LatticeNode {
pub begin: usize,
pub end: usize,
pub left_id: i16,
pub right_id: i16,
pub cost: i16,
pub word_id: i32,
pub total_cost: i32,
pub best_previous_node_index: i32,
pub is_connected_to_bos: bool,
pub is_oov: bool,
pub oov_pos_id: Option<i16>,
}Expand description
A node in the lattice DAG.
Fields§
§begin: usize§end: usize§left_id: i16§right_id: i16§cost: i16§word_id: i32§total_cost: i32§best_previous_node_index: i32§is_connected_to_bos: bool§is_oov: bool§oov_pos_id: Option<i16>Trait Implementations§
Source§impl Clone for LatticeNode
impl Clone for LatticeNode
Source§fn clone(&self) -> LatticeNode
fn clone(&self) -> LatticeNode
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 LatticeNode
impl Debug for LatticeNode
Source§impl Default for LatticeNode
impl Default for LatticeNode
Source§impl From<&LatticeNode> for PathNode
impl From<&LatticeNode> for PathNode
Source§fn from(n: &LatticeNode) -> Self
fn from(n: &LatticeNode) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LatticeNode
impl RefUnwindSafe for LatticeNode
impl Send for LatticeNode
impl Sync for LatticeNode
impl Unpin for LatticeNode
impl UnsafeUnpin for LatticeNode
impl UnwindSafe for LatticeNode
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