Skip to main content

occupancy

Function occupancy 

Source
pub fn occupancy<A>(
    chain: &AlignChain,
    dense: &DenseFst<'_, A>,
) -> Result<Option<Occupancy>, OpenFstError>
where A: Arc, A::Weight: FromScore,
Expand description

Forward-backward over chain against dense, in the log semiring.

Returns None in the same cases align does: a reference too long for the frames, or one no path can complete.

ยงErrors

A phone naming a column the acoustic model does not have, or a matrix so large that the forward plane does not fit in memory; see the module docs for how large that is.