FST  openfst-1.7.1
OpenFst Library
invert.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/fst-class.h>
5 #include <fst/script/invert.h>
7 
8 namespace fst {
9 namespace script {
10 
11 void Invert(MutableFstClass *fst) {
12  Apply<Operation<MutableFstClass>>("Invert", fst->ArcType(), fst);
13 }
14 
15 REGISTER_FST_OPERATION(Invert, StdArc, MutableFstClass);
16 REGISTER_FST_OPERATION(Invert, LogArc, MutableFstClass);
17 REGISTER_FST_OPERATION(Invert, Log64Arc, MutableFstClass);
18 
19 } // namespace script
20 } // namespace fst
ArcTpl< TropicalWeight > StdArc
Definition: arc.h:55
REGISTER_FST_OPERATION(Compress, StdArc, CompressArgs)
void Invert(MutableFstClass *fst)
Definition: invert.h:14
ArcTpl< Log64Weight > Log64Arc
Definition: arc.h:57
ArcTpl< LogWeight > LogArc
Definition: arc.h:56