FST  openfst-1.7.2
OpenFst Library
Functions
farcompilestrings.cc File Reference
#include <string>
#include <vector>
#include <fst/flags.h>
#include <fst/extensions/far/farscript.h>
#include <fst/extensions/far/getters.h>
#include <fstream>
Include dependency graph for farcompilestrings.cc:

Go to the source code of this file.

Functions

 DEFINE_string (key_prefix,"","Prefix to append to keys")
 
 DEFINE_string (key_suffix,"","Suffix to append to keys")
 
 DEFINE_int32 (generate_keys, 0,"Generate N digit numeric keys (def: use file basenames)")
 
 DEFINE_string (far_type,"default","FAR file format type: one of: \"default\", \"fst\", ""\"stlist\", \"sttable\"")
 
 DEFINE_bool (allow_negative_labels, false,"Allow negative labels (not recommended; may cause conflicts)")
 
 DEFINE_string (arc_type,"standard","Output arc type")
 
 DEFINE_string (entry_type,"line","Entry type: one of : ""\"file\" (one FST per file), \"line\" (one FST per line)")
 
 DEFINE_string (fst_type,"vector","Output FST type")
 
 DEFINE_string (token_type,"symbol","Token type: one of : ""\"symbol\", \"byte\", \"utf8\"")
 
 DEFINE_string (symbols,"","Label symbol table")
 
 DEFINE_string (unknown_symbol,"","")
 
 DEFINE_bool (file_list_input, false,"Each input file contains a list of files to be processed")
 
 DEFINE_bool (keep_symbols, false,"Store symbol table in the FAR file")
 
 DEFINE_bool (initial_symbols, true,"When keep_symbols is true, stores symbol table only for the first"" FST in archive.")
 
int main (int argc, char **argv)
 

Function Documentation

DEFINE_bool ( allow_negative_labels  ,
false  ,
"Allow negative labels (not recommended; may cause conflicts)"   
)
DEFINE_bool ( file_list_input  ,
false  ,
"Each input file contains a list of files to be processed"   
)
DEFINE_bool ( keep_symbols  ,
false  ,
"Store symbol table in the FAR file"   
)
DEFINE_bool ( initial_symbols  ,
true  ,
"When keep_symbols is  true,
stores symbol table only for the first""FST in archive."   
)
DEFINE_int32 ( generate_keys  ,
,
"Generate N digit numeric keys (def: use file basenames)"   
)
DEFINE_string ( key_prefix  ,
""  ,
"Prefix to append to keys"   
)
DEFINE_string ( key_suffix  ,
""  ,
"Suffix to append to keys"   
)
DEFINE_string ( far_type  ,
"default"  ,
"FAR file format type: one of: \"default\"  ,
\"fst\"  ,
""\"stlist\"  ,
\"sttable\""   
)
DEFINE_string ( arc_type  ,
"standard"  ,
"Output arc type"   
)
DEFINE_string ( entry_type  ,
"line"  ,
"Entry type: one of : ""\"file\"   one FST per file,
\"line\" (one FST per line)"   
)
DEFINE_string ( fst_type  ,
"vector"  ,
"Output FST type"   
)
DEFINE_string ( token_type  ,
"symbol"  ,
"Token type: one of : ""\"symbol\"  ,
\"byte\"  ,
\"utf8\""   
)
DEFINE_string ( symbols  ,
""  ,
"Label symbol table"   
)
DEFINE_string ( unknown_symbol  ,
""  ,
""   
)
int main ( int  argc,
char **  argv 
)

Definition at line 40 of file farcompilestrings.cc.