#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>
Go to the source code of this file.
|
| 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) |
|
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 |
, |
|
|
1 |
, |
|
|
"Number of paths to generate" |
|
|
) |
| |
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |