FST  openfst-1.7.1
OpenFst Library
sigma-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 
5 
6 #include <fst/fst.h>
7 
8 DEFINE_int64(sigma_fst_sigma_label, 0,
9  "Label of transitions to be interpreted as sigma ('any') "
10  "transitions");
11 DEFINE_string(sigma_fst_rewrite_mode, "auto",
12  "Rewrite both sides when matching? One of:"
13  " \"auto\" (rewrite iff acceptor), \"always\", \"never\"");
14 
15 namespace fst {
16 
17 const char sigma_fst_type[] = "sigma";
18 const char input_sigma_fst_type[] = "input_sigma";
19 const char output_sigma_fst_type[] = "output_sigma";
20 
21 static FstRegisterer<StdSigmaFst> SigmaFst_StdArc_registerer;
22 static FstRegisterer<LogSigmaFst> SigmaFst_LogArc_registerer;
23 static FstRegisterer<Log64SigmaFst> SigmaFst_Log64Arc_registerer;
24 
25 static FstRegisterer<StdInputSigmaFst> InputSigmaFst_StdArc_registerer;
26 static FstRegisterer<LogInputSigmaFst> InputSigmaFst_LogArc_registerer;
27 static FstRegisterer<Log64InputSigmaFst> InputSigmaFst_Log64Arc_registerer;
28 
29 static FstRegisterer<StdOutputSigmaFst> OutputSigmaFst_StdArc_registerer;
30 static FstRegisterer<LogOutputSigmaFst> OutputSigmaFst_LogArc_registerer;
31 static FstRegisterer<Log64OutputSigmaFst> OutputSigmaFst_Log64Arc_registerer;
32 
33 } // namespace fst
const char sigma_fst_type[]
Definition: sigma-fst.cc:17
DEFINE_int64(sigma_fst_sigma_label, 0,"Label of transitions to be interpreted as sigma ('any') ""transitions")
const char output_sigma_fst_type[]
Definition: sigma-fst.cc:19
DEFINE_string(sigma_fst_rewrite_mode,"auto","Rewrite both sides when matching? One of:"" \"auto\" (rewrite iff acceptor), \"always\", \"never\"")
const char input_sigma_fst_type[]
Definition: sigma-fst.cc:18