FST  openfst-1.7.2
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)");
14 DEFINE_string(unknown_osymbol, "",
15  "Output symbol to use to relabel OOVs (default: OOVs are errors)");
16 DEFINE_bool(allow_negative_labels, false,
17  "Allow negative labels (not recommended; may cause conflicts)");
18 
19 int fstrelabel_main(int argc, char **argv);
20 
21 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:21
int fstrelabel_main(int argc, char **argv)
DEFINE_string(isymbols,"","Input label symbol table")