Function rustfst::algorithms::closure_plus
source · pub fn closure_plus<F>(fst: &mut F) -> Result<(), Error>where
F: ExpandedFst + MutableFst,
Expand description
This operation computes the concatenative closure.
If A transduces string x
to y
with weight a
,
then the closure transduces x
to y
with weight a
,
xx
to yy
with weight a ⊗ a
, xxx
to yyy
with weight a ⊗ a ⊗ a
, etc.