pub struct ChainTrellis<'a, A: Arc> { /* private fields */ }Expand description
AlignChain against a matrix of scores: the trellis align solves.
The chain alone has no scores, and a Trellis is the two together. This
is public because the trellis is the reusable half: best_path and
posteriors take one, so a caller wanting the raw Path, or a variant
topology of their own, starts here rather than at align. It is also the
worked example the trellis docs point at.
Implementations§
Source§impl<A: Arc> ChainTrellis<'_, A>
impl<A: Arc> ChainTrellis<'_, A>
Sourcepub fn chain(&self) -> &AlignChain
pub fn chain(&self) -> &AlignChain
The reference this reads.
Trait Implementations§
Source§impl<'a, A: Clone + Arc> Clone for ChainTrellis<'a, A>
impl<'a, A: Clone + Arc> Clone for ChainTrellis<'a, A>
Source§fn clone(&self) -> ChainTrellis<'a, A>
fn clone(&self) -> ChainTrellis<'a, A>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a, A: Copy + Arc> Copy for ChainTrellis<'a, A>
Source§impl<A: Arc> ReversibleTrellis<4> for ChainTrellis<'_, A>
impl<A: Arc> ReversibleTrellis<4> for ChainTrellis<'_, A>
Source§impl<A: Arc> Trellis<4> for ChainTrellis<'_, A>
impl<A: Arc> Trellis<4> for ChainTrellis<'_, A>
Source§type Frame<'f> = &'f [f32]
where
Self: 'f
type Frame<'f> = &'f [f32] where Self: 'f
What one frame’s transitions are read from, usually a row of acoustic
scores. Read more
Source§fn num_frames(&self) -> usize
fn num_frames(&self) -> usize
The number of frames to be accounted for.
Source§fn num_positions(&self) -> usize
fn num_positions(&self) -> usize
The last position. There are
num_positions() + 1 cells in a frame,
s_0 through s_N; a path starts at s_0 and has to finish at s_N.Auto Trait Implementations§
impl<'a, A> Freeze for ChainTrellis<'a, A>
impl<'a, A> RefUnwindSafe for ChainTrellis<'a, A>where
&'a DenseFst<'a, A>: RefUnwindSafe,
impl<'a, A> Send for ChainTrellis<'a, A>
impl<'a, A> Sync for ChainTrellis<'a, A>
impl<'a, A> Unpin for ChainTrellis<'a, A>
impl<'a, A> UnsafeUnpin for ChainTrellis<'a, A>where
&'a DenseFst<'a, A>: UnsafeUnpin,
impl<'a, A> UnwindSafe for ChainTrellis<'a, A>where
&'a DenseFst<'a, A>: UnwindSafe,
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