FST  openfst-1.7.3
OpenFst Library
Go to the documentation of this file.
1 #include <fst/flags.h>
3 DEFINE_string(filename_prefix, "", "Prefix to append to filenames");
4 DEFINE_string(filename_suffix, "", "Suffix to append to filenames");
5 DEFINE_int32(generate_filenames, 0,
6  "Generate N digit numeric filenames (def: use keys)");
7 DEFINE_string(begin_key, "",
8  "First key to extract (def: first key in archive)");
9 DEFINE_string(end_key, "", "Last key to extract (def: last key in archive)");
10 // PrintStringsMain specific flag definitions.
11 DEFINE_bool(print_key, false, "Prefix each std::string by its key");
12 DEFINE_bool(print_weight, false, "Suffix each std::string by its weight");
13 DEFINE_string(entry_type, "line",
14  "Entry type: one of : "
15  "\"file\" (one FST per file), \"line\" (one FST per line)");
16 DEFINE_string(token_type, "symbol",
17  "Token type: one of : "
18  "\"symbol\", \"byte\", \"utf8\"");
19 DEFINE_string(symbols, "", "Label symbol table");
20 DEFINE_bool(initial_symbols, true,
21  "Uses symbol table from the first Fst in archive for all entries.");
23 int farprintstrings_main(int argc, char **argv);
24 int main(int argc, char **argv) {
25  return farprintstrings_main(argc, argv);
26 }
DEFINE_int32(generate_filenames, 0,"Generate N digit numeric filenames (def: use keys)")
DEFINE_bool(print_key, false,"Prefix each std::string by its key")
int main(int argc, char **argv)
DEFINE_string(filename_prefix,"","Prefix to append to filenames")
int farprintstrings_main(int argc, char **argv)