FST  openfst-1.7.1
OpenFst Library
Functions
pdtreplace.cc File Reference
#include <cstring>
#include <string>
#include <vector>
#include <fst/flags.h>
#include <fst/extensions/pdt/getters.h>
#include <fst/extensions/pdt/pdtscript.h>
#include <fst/util.h>
#include <fst/vector-fst.h>
Include dependency graph for pdtreplace.cc:

Go to the source code of this file.

Functions

 DEFINE_string (pdt_parentheses,"","PDT parenthesis label pairs")
 
 DEFINE_string (pdt_parser_type,"left","Construction method, one of: \"left\", \"left_sr\"")
 
 DEFINE_int64 (start_paren_labels, fst::kNoLabel,"Index to use for the first inserted parentheses; if not ""specified, the next available label beyond the highest output ""label is used")
 
 DEFINE_string (left_paren_prefix,"(_","Prefix to attach to SymbolTable ""labels for inserted left parentheses")
 
 DEFINE_string (right_paren_prefix,")_","Prefix to attach to SymbolTable ""labels for inserted right parentheses")
 
void Cleanup (std::vector< fst::script::LabelFstClassPair > *pairs)
 
int main (int argc, char **argv)
 

Function Documentation

void Cleanup ( std::vector< fst::script::LabelFstClassPair > *  pairs)

Definition at line 30 of file pdtreplace.cc.

DEFINE_int64 ( start_paren_labels  ,
fst::kNoLabel  ,
"Index to use for the first inserted parentheses; if not ""  specified,
the next available label beyond the highest output""label is used"   
)
DEFINE_string ( pdt_parentheses  ,
""  ,
"PDT parenthesis label pairs"   
)
DEFINE_string ( pdt_parser_type  ,
"left"  ,
"Construction  method,
one of:\"left\"  ,
\"left_sr\""   
)
DEFINE_string ( left_paren_prefix  )
DEFINE_string ( right_paren_prefix  ,
 
)
int main ( int  argc,
char **  argv 
)

Definition at line 37 of file pdtreplace.cc.