FST  openfst-1.8.3
OpenFst Library
sigma-fst.cc
Go to the documentation of this file.
1 // Copyright 2005-2024 Google LLC
2 //
3 // Licensed under the Apache License, Version 2.0 (the 'License');
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an 'AS IS' BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 //
15 // See www.openfst.org for extensive documentation on this weighted
16 // finite-state transducer library.
17 
19 
20 #include <fst/flags.h>
21 #include <fst/arc.h>
22 #include <fst/register.h>
23 
24 DEFINE_int64(sigma_fst_sigma_label, 0,
25  "Label of transitions to be interpreted as sigma ('any') "
26  "transitions");
27 DEFINE_string(sigma_fst_rewrite_mode, "auto",
28  "Rewrite both sides when matching? One of:"
29  " \"auto\" (rewrite iff acceptor), \"always\", \"never\"");
30 
31 namespace fst {
32 
36 
40 
44 
45 } // namespace fst
ArcTpl< TropicalWeight > StdArc
Definition: arc.h:75
MatcherFst< ConstFst< Arc >, SigmaFstMatcher< SortedMatcher< ConstFst< Arc >>, kSigmaFstMatchInput >, input_sigma_fst_type > InputSigmaFst
Definition: sigma-fst.h:166
DEFINE_int64(sigma_fst_sigma_label, 0,"Label of transitions to be interpreted as sigma ('any') ""transitions")
MatcherFst< ConstFst< Arc >, SigmaFstMatcher< SortedMatcher< ConstFst< Arc >>, kSigmaFstMatchOutput >, output_sigma_fst_type > OutputSigmaFst
Definition: sigma-fst.h:174
MatcherFst< ConstFst< Arc >, SigmaFstMatcher< SortedMatcher< ConstFst< Arc >>>, sigma_fst_type > SigmaFst
Definition: sigma-fst.h:158
ArcTpl< Log64Weight > Log64Arc
Definition: arc.h:77
DEFINE_string(sigma_fst_rewrite_mode,"auto","Rewrite both sides when matching? One of:"" \"auto\" (rewrite iff acceptor), \"always\", \"never\"")
REGISTER_FST(PhiFst, StdArc)
ArcTpl< LogWeight > LogArc
Definition: arc.h:76