FST  openfst-1.7.2
OpenFst Library
fstdraw.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/flags.h>
5 
6 DEFINE_bool(acceptor, false, "Input in acceptor format");
7 DEFINE_string(isymbols, "", "Input label symbol table");
8 DEFINE_string(osymbols, "", "Output label symbol table");
9 DEFINE_string(ssymbols, "", "State label symbol table");
10 DEFINE_bool(numeric, false, "Print numeric labels");
11 DEFINE_int32(precision, 5, "Set precision (number of char/float)");
12 DEFINE_string(float_format, "g",
13  "Floating-point format, one of: \"e\", \"f\", or \"g\"");
14 DEFINE_bool(show_weight_one, false,
15  "Print/draw arc weights and final weights equal to Weight::One()");
16 DEFINE_string(title, "", "Set figure title");
17 DEFINE_bool(portrait, false, "Portrait mode (def: landscape)");
18 DEFINE_bool(vertical, false, "Draw bottom-to-top instead of left-to-right");
19 DEFINE_int32(fontsize, 14, "Set fontsize");
20 DEFINE_double(height, 11, "Set height");
21 DEFINE_double(width, 8.5, "Set width");
22 DEFINE_double(nodesep, 0.25,
23  "Set minimum separation between nodes (see dot documentation)");
24 DEFINE_double(ranksep, 0.40,
25  "Set minimum separation between ranks (see dot documentation)");
26 DEFINE_bool(allow_negative_labels, false,
27  "Allow negative labels (not recommended; may cause conflicts)");
28 
29 int fstdraw_main(int argc, char **argv);
30 
31 int main(int argc, char **argv) { return fstdraw_main(argc, argv); }
DEFINE_string(isymbols,"","Input label symbol table")
DEFINE_bool(acceptor, false,"Input in acceptor format")
DEFINE_int32(precision, 5,"Set precision (number of char/float)")
DEFINE_double(height, 11,"Set height")
int main(int argc, char **argv)
Definition: fstdraw.cc:31
int fstdraw_main(int argc, char **argv)
Definition: fstdraw-main.cc:35