FST  openfst-1.8.3
OpenFst Library
rho-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(rho_fst_rho_label, 0,
25  "Label of transitions to be interpreted as rho ('rest') "
26  "transitions");
27 DEFINE_string(rho_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
MatcherFst< ConstFst< Arc >, RhoFstMatcher< SortedMatcher< ConstFst< Arc >>, kRhoFstMatchInput >, input_rho_fst_type > InputRhoFst
Definition: rho-fst.h:163
MatcherFst< ConstFst< Arc >, RhoFstMatcher< SortedMatcher< ConstFst< Arc >>, kRhoFstMatchOutput >, output_rho_fst_type > OutputRhoFst
Definition: rho-fst.h:171
DEFINE_string(rho_fst_rewrite_mode,"auto","Rewrite both sides when matching? One of:"" \"auto\" (rewrite iff acceptor), \"always\", \"never\"")
ArcTpl< TropicalWeight > StdArc
Definition: arc.h:75
ArcTpl< Log64Weight > Log64Arc
Definition: arc.h:77
MatcherFst< ConstFst< Arc >, RhoFstMatcher< SortedMatcher< ConstFst< Arc >>>, rho_fst_type > RhoFst
Definition: rho-fst.h:155
DEFINE_int64(rho_fst_rho_label, 0,"Label of transitions to be interpreted as rho ('rest') ""transitions")
REGISTER_FST(PhiFst, StdArc)
ArcTpl< LogWeight > LogArc
Definition: arc.h:76