FST  openfst-1.6.1
OpenFst Library
equivalent.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_EQUIVALENT_H_
5 #define FST_SCRIPT_EQUIVALENT_H_
6 
7 #include <fst/equivalent.h>
8 #include <fst/script/arg-packs.h>
9 #include <fst/script/fst-class.h>
10 
11 namespace fst {
12 namespace script {
13 
14 using EquivalentInnerArgs =
17 
18 template <class Arc>
20  const Fst<Arc> &fst1 = *(args->args.arg1.GetFst<Arc>());
21  const Fst<Arc> &fst2 = *(args->args.arg2.GetFst<Arc>());
22  args->retval = Equivalent(fst1, fst2, args->args.arg3, args->args.arg4);
23 }
24 
25 bool Equivalent(const FstClass &fst1, const FstClass &fst2,
26  float delta = kDelta, bool *error = nullptr);
27 
28 } // namespace script
29 } // namespace fst
30 
31 #endif // FST_SCRIPT_EQUIVALENT_H_
void Equivalent(EquivalentArgs *args)
Definition: equivalent.h:19
args::Package< const FstClass &, const FstClass &, float, bool * > EquivalentInnerArgs
Definition: equivalent.h:15
constexpr float kDelta
Definition: weight.h:96