#include <cstdlib>
#include <ctime>
#include <memory>
#include <string>
#include <fst/extensions/compress/randmod.h>
#include <fst/log.h>
#include <fst/fstlib.h>
#include <fst/util.h>
Go to the source code of this file.
|
| DEFINE_int32 (seed, time(0),"Random seed") |
|
| DEFINE_int32 (states, 10,"# of states") |
|
| DEFINE_int32 (labels, 2,"# of labels") |
|
| DEFINE_int32 (classes, 1,"# of probability distributions") |
|
| DEFINE_bool (transducer, false,"Output a transducer") |
|
| DEFINE_bool (weights, false,"Output a weighted FST") |
|
int | main (int argc, char **argv) |
|
DEFINE_bool |
( |
transducer |
, |
|
|
false |
, |
|
|
"Output a transducer" |
|
|
) |
| |
DEFINE_bool |
( |
weights |
, |
|
|
false |
, |
|
|
"Output a weighted FST" |
|
|
) |
| |
DEFINE_int32 |
( |
seed |
, |
|
|
time(0) |
, |
|
|
"Random seed" |
|
|
) |
| |
DEFINE_int32 |
( |
states |
, |
|
|
10 |
, |
|
|
"# of states" |
|
|
) |
| |
DEFINE_int32 |
( |
labels |
, |
|
|
2 |
, |
|
|
"# of labels" |
|
|
) |
| |
DEFINE_int32 |
( |
classes |
, |
|
|
1 |
, |
|
|
"# of probability distributions" |
|
|
) |
| |
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |