FST  openfst-1.8.3
OpenFst Library
fstinfo.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 
18 #include <fst/flags.h>
19 
20 DEFINE_string(arc_filter, "any",
21  "Arc filter: one of"
22  " \"any\", \"epsilon\", \"iepsilon\", \"oepsilon\"; "
23  "this only affects the counts of (co)accessible states, "
24  "connected states, and (strongly) connected components");
25 DEFINE_string(info_type, "auto",
26  "Info format: one of \"auto\", \"long\", \"short\", \"fast\".\n"
27  "auto: Equivalent to \"long\" if the FST is an ExpandedFst,"
28  " otherwise \"short\".\n"
29  "long: Print all properties, computing if unknown;"
30  " this may be slow for large FSTs.\n"
31  "short: Print only type and SymbolTable info.\n"
32  "fast: Print only info that is fast to obtain (by reading"
33  " only the file header);" " this is more info than \"short\","
34  " but less than \"long\".");
35 DEFINE_bool(test_properties, true,
36  "Compute property values (if unknown to FST)");
37 DEFINE_bool(fst_verify, true, "Verify FST sanity");
38 
39 int fstinfo_main(int argc, char **argv);
40 
41 int main(int argc, char **argv) { return fstinfo_main(argc, argv); }
int main(int argc, char **argv)
Definition: fstinfo.cc:41
DEFINE_bool(test_properties, true,"Compute property values (if unknown to FST)")
DEFINE_string(arc_filter,"any","Arc filter: one of"" \"any\", \"epsilon\", \"iepsilon\", \"oepsilon\"; ""this only affects the counts of (co)accessible states, ""connected states, and (strongly) connected components")
int fstinfo_main(int argc, char **argv)
Definition: fstinfo-main.cc:74