FST  openfst-1.7.7
OpenFst Library
decode.cc
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 #include <fst/script/decode.h>
5 
7 
8 namespace fst {
9 namespace script {
10 
12  if (!internal::ArcTypesMatch(*fst, mapper, "Decode")) {
14  return;
15  }
16  DecodeArgs args(fst, mapper);
17  Apply<Operation<DecodeArgs>>("Decode", fst->ArcType(), &args);
18 }
19 
21 
22 } // namespace script
23 } // namespace fst
REGISTER_FST_OPERATION_3ARCS(Compress, CompressArgs)
const std::string & ArcType() const final
Definition: fst-class.h:300
bool ArcTypesMatch(const M &m, const N &n, const std::string &op_name)
Definition: script-impl.h:178
std::pair< MutableFstClass *, const EncodeMapperClass & > DecodeArgs
Definition: decode.h:17
constexpr uint64 kError
Definition: properties.h:36
void SetProperties(uint64 props, uint64 mask)
Definition: fst-class.h:467
void Decode(DecodeArgs *args)
Definition: decode.h:20