GRM-SFST
sfst-1.2.1
OpenGrm SFst Library
|
#include <trim.h>
Public Types | |
using | StateId = typename Arc::StateId |
using | Weight = typename Arc::Weight |
using | Label = typename Arc::Label |
using | Matr = fst::ExplicitMatcher< fst::Matcher< fst::Fst< Arc >>> |
using | PhiMatr = fst::PhiMatcher< fst::Matcher< fst::Fst< Arc >>> |
Public Member Functions | |
Trimmer (fst::MutableFst< Arc > *fst, typename Arc::Label phi_label, TrimType trim_type=TRIM_NEEDED_FINAL) | |
void | PhiTrim () |
void | WeightTrim (bool include_phi, Weight approx_zero=ApproxZeroWeight()) |
void | SumWeightTrim (bool include_phi, Weight approx_zero=ApproxZeroWeight()) |
void | Connect () |
void | Finalize () |
using sfst::Trimmer< Arc >::Label = typename Arc::Label |
using sfst::Trimmer< Arc >::Matr = fst::ExplicitMatcher<fst::Matcher<fst::Fst<Arc>>> |
using sfst::Trimmer< Arc >::PhiMatr = fst::PhiMatcher<fst::Matcher<fst::Fst<Arc>>> |
using sfst::Trimmer< Arc >::StateId = typename Arc::StateId |
using sfst::Trimmer< Arc >::Weight = typename Arc::Weight |
|
inline |
|
inline |
void sfst::Trimmer< Arc >::Finalize | ( | ) |
void sfst::Trimmer< Arc >::PhiTrim | ( | ) |
void sfst::Trimmer< Arc >::SumWeightTrim | ( | bool | include_phi, |
Weight | approx_zero = ApproxZeroWeight() |
||
) |
void sfst::Trimmer< Arc >::WeightTrim | ( | bool | include_phi, |
Weight | approx_zero = ApproxZeroWeight() |
||
) |