GRM-SFST  sfst-1.2.1
OpenGrm SFst Library
Functions
sfstrandgen.cc File Reference
#include <time.h>
#include <climits>
#include <cstring>
#include <string>
#include <fst/flags.h>
#include <fst/log.h>
#include <fst/arc.h>
#include <fst/fst.h>
#include <fst/randgen.h>
#include <fst/vector-fst.h>
#include <sfst/normalize.h>
Include dependency graph for sfstrandgen.cc:

Go to the source code of this file.

Functions

 DEFINE_int64 (phi_label, fst::kNoLabel,"Specifies failure label (default: none)")
 
 DEFINE_int32 (max_length, INT_MAX,"Maximum path length")
 
 DEFINE_int64 (npath, 1,"Number of paths to generate")
 
 DEFINE_int32 (seed, time(0),"Random seed")
 
 DEFINE_bool (weighted, false,"Output tree weighted by path count vs. unweighted paths")
 
 DEFINE_bool (remove_total_weight, false,"Remove total weight when output weighted")
 
 DEFINE_bool (minimal, false,"Epsilon/phi-remove and minimize when output is weighted")
 
 DEFINE_bool (stochastic, false,"Same as --weighted --remove_total_weight --minimal")
 
int main (int argc, char **argv)
 

Function Documentation

DEFINE_bool ( weighted  ,
false  ,
"Output tree weighted by path count vs. unweighted paths"   
)
DEFINE_bool ( remove_total_weight  ,
false  ,
"Remove total weight when output weighted"   
)
DEFINE_bool ( minimal  ,
false  ,
"Epsilon/phi-remove and minimize when output is weighted"   
)
DEFINE_bool ( stochastic  ,
false  ,
"Same as --weighted --remove_total_weight --minimal"   
)
DEFINE_int32 ( max_length  ,
INT_MAX  ,
"Maximum path length"   
)
DEFINE_int32 ( seed  ,
time(0)  ,
"Random seed"   
)
DEFINE_int64 ( phi_label  ,
fst::kNoLabel  ,
"Specifies failure label (default: none)"   
)
DEFINE_int64 ( npath  ,
,
"Number of paths to generate"   
)
int main ( int  argc,
char **  argv 
)

Definition at line 47 of file sfstrandgen.cc.