FST  openfst-1.7.1
OpenFst Library
epsnormalize.h
Go to the documentation of this file.
1 // See www.openfst.org for extensive documentation on this weighted
2 // finite-state transducer library.
3 
4 #ifndef FST_SCRIPT_EPSNORMALIZE_H_
5 #define FST_SCRIPT_EPSNORMALIZE_H_
6 
7 #include <tuple>
8 
9 #include <fst/epsnormalize.h>
10 #include <fst/script/fst-class.h>
11 
12 namespace fst {
13 namespace script {
14 
15 using EpsNormalizeArgs = std::tuple<const FstClass &, MutableFstClass *,
17 
18 template <class Arc>
20  const Fst<Arc> &ifst = *(std::get<0>(*args).GetFst<Arc>());
21  MutableFst<Arc> *ofst = std::get<1>(*args)->GetMutableFst<Arc>();
22  EpsNormalize(ifst, ofst, std::get<2>(*args));
23 }
24 
25 void EpsNormalize(const FstClass &ifst, MutableFstClass *ofst,
26  EpsNormalizeType norm_type = EPS_NORM_INPUT);
27 
28 } // namespace script
29 } // namespace fst
30 
31 #endif // FST_SCRIPT_EPSNORMALIZE_H_
void EpsNormalize(EpsNormalizeArgs *args)
Definition: epsnormalize.h:19
EpsNormalizeType
Definition: epsnormalize.h:18
std::tuple< const FstClass &, MutableFstClass *, EpsNormalizeType > EpsNormalizeArgs
Definition: epsnormalize.h:16