FST  openfst-1.7.9
OpenFst Library
fstrelabel.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_string(isymbols, "", "Input label symbol table");
7 DEFINE_string(osymbols, "", "Output label symbol table");
8 DEFINE_string(relabel_isymbols, "", "Input symbol set to relabel to");
9 DEFINE_string(relabel_osymbols, "", "Output symbol set to relabel to");
10 DEFINE_string(relabel_ipairs, "", "Input relabel pairs (numeric)");
11 DEFINE_string(relabel_opairs, "", "Output relabel pairs (numeric)");
12 DEFINE_string(unknown_isymbol, "",
13  "Input symbol to use to relabel OOVs (default: OOVs are errors)");
15  unknown_osymbol, "",
16  "Output symbol to use to relabel OOVs (default: OOVs are errors)");
17 DEFINE_bool(allow_negative_labels, false,
18  "Allow negative labels (not recommended; may cause conflicts)");
19 
20 int fstrelabel_main(int argc, char **argv);
21 
22 int main(int argc, char **argv) { return fstrelabel_main(argc, argv); }
DEFINE_bool(allow_negative_labels, false,"Allow negative labels (not recommended; may cause conflicts)")
int main(int argc, char **argv)
Definition: fstrelabel.cc:22
int fstrelabel_main(int argc, char **argv)
DEFINE_string(isymbols,"","Input label symbol table")