FST  openfst-1.7.1
OpenFst Library
phi-fst.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/fst.h>
6 
7 DEFINE_int64(phi_fst_phi_label, 0,
8  "Label of transitions to be interpreted as phi ('failure') "
9  "transitions");
10 DEFINE_bool(phi_fst_phi_loop, true,
11  "When true, a phi self loop consumes a symbol");
12 DEFINE_string(phi_fst_rewrite_mode, "auto",
13  "Rewrite both sides when matching? One of:"
14  " \"auto\" (rewrite iff acceptor), \"always\", \"never\"");
15 
16 namespace fst {
17 
18 const char phi_fst_type[] = "phi";
19 const char input_phi_fst_type[] = "input_phi";
20 const char output_phi_fst_type[] = "output_phi";
21 
22 static FstRegisterer<StdPhiFst> PhiFst_StdArc_registerer;
23 static FstRegisterer<LogPhiFst> PhiFst_LogArc_registerer;
24 static FstRegisterer<Log64PhiFst> PhiFst_Log64Arc_registerer;
25 
26 static FstRegisterer<StdInputPhiFst> InputPhiFst_StdArc_registerer;
27 static FstRegisterer<LogInputPhiFst> InputPhiFst_LogArc_registerer;
28 static FstRegisterer<Log64InputPhiFst> InputPhiFst_Log64Arc_registerer;
29 
30 static FstRegisterer<StdOutputPhiFst> OutputPhiFst_StdArc_registerer;
31 static FstRegisterer<LogOutputPhiFst> OutputPhiFst_LogArc_registerer;
32 static FstRegisterer<Log64OutputPhiFst> OutputPhiFst_Log64Arc_registerer;
33 
34 } // namespace fst
const char input_phi_fst_type[]
Definition: phi-fst.cc:19
const char output_phi_fst_type[]
Definition: phi-fst.cc:20
const char phi_fst_type[]
Definition: phi-fst.cc:18
DEFINE_string(phi_fst_rewrite_mode,"auto","Rewrite both sides when matching? One of:"" \"auto\" (rewrite iff acceptor), \"always\", \"never\"")
DEFINE_int64(phi_fst_phi_label, 0,"Label of transitions to be interpreted as phi ('failure') ""transitions")
DEFINE_bool(phi_fst_phi_loop, true,"When true, a phi self loop consumes a symbol")