18 #ifndef FST_EXTENSIONS_LINEAR_LOGLINEAR_APPLY_H_ 19 #define FST_EXTENSIONS_LINEAR_LOGLINEAR_APPLY_H_ 52 bool normalize =
true) {
53 LogLinearApply<A, LogArc>(ifst, lfst, ofst, normalize);
59 template <
class A,
class B>
61 bool normalize =
true) {
64 Compose(ifst, lfst, &unnormalized_ofst);
81 Compose(tropical_ifsa, ifst, &rescored_ifsa);
84 Compose(rescored_ifsa, unnormalized_ofst, ofst);
92 #endif // FST_EXTENSIONS_LINEAR_LOGLINEAR_APPLY_H_ void ArcMap(MutableFst< A > *fst, C *mapper)
void RmEpsilon(MutableFst< Arc > *fst, std::vector< typename Arc::Weight > *distance, const RmEpsilonOptions< Arc, Queue > &opts)
void Determinize(const Fst< Arc > &ifst, MutableFst< Arc > *ofst, const DeterminizeOptions< Arc > &opts=DeterminizeOptions< Arc >())
void LogLinearApply(const Fst< A > &ifst, const Fst< A > &lfst, MutableFst< A > *ofst, bool normalize=true)
void ArcSort(MutableFst< Arc > *fst, Compare comp)
void Compose(const Fst< Arc > &ifst1, const Fst< Arc > &ifst2, MutableFst< Arc > *ofst, const ComposeOptions &opts=ComposeOptions())
void Project(const Fst< Arc > &ifst, MutableFst< Arc > *ofst, ProjectType project_type)
void Minimize(MutableFst< Arc > *fst, MutableFst< Arc > *sfst=nullptr, float delta=kShortestDelta, bool allow_nondet=false)