#include <stdio.h>
#include <s3types.h>
#include <glist.h>
#include <fsg.h>
#include <kbcore.h>
#include <dict.h>
#include <mdef.h>
#include <tmat.h>
#include <ctxt_table.h>
Go to the source code of this file.
Functions |
word_fsg_t * | word_fsg_readfile (const char *file, int use_altpron, int use_filler, kbcore_t *kbc) |
word_fsg_t * | word_fsg_read (FILE *fp, int use_altpron, int use_filler, kbcore_t *kbc) |
word_fsg_t * | word_fsg_load (s2_fsg_t *s2_fsg, int use_altpron, int use_filler, kbcore_t *kbc) |
void | word_fsg_writefile (word_fsg_t *fsg, char *file) |
void | word_fsg_write (word_fsg_t *fsg, FILE *fp) |
void | word_fsg_free (word_fsg_t *) |
int32 | word_fsg_set_start_state (word_fsg_t *fsg, int32 new_start_state) |
int32 | word_fsg_set_final_state (word_fsg_t *fsg, int32 new_final_state) |
Macro Definition Documentation
#define word_fsg_final_state |
( |
|
f | ) |
((f)->final_state) |
#define word_fsg_lc |
( |
|
f, |
|
|
|
s |
|
) |
| ((f)->lc[s]) |
#define word_fsg_lw |
( |
|
f | ) |
((f)->lw) |
#define word_fsg_n_state |
( |
|
f | ) |
((f)->n_state) |
#define word_fsg_name |
( |
|
f | ) |
((f)->name) |
#define word_fsg_null_trans |
( |
|
f, |
|
|
|
i, |
|
|
|
j |
|
) |
| ((f)->null_trans[i][j]) |
#define word_fsg_rc |
( |
|
f, |
|
|
|
s |
|
) |
| ((f)->rc[s]) |
#define word_fsg_start_state |
( |
|
f | ) |
((f)->start_state) |
#define word_fsg_trans |
( |
|
f, |
|
|
|
i, |
|
|
|
j |
|
) |
| ((f)->trans[i][j]) |
#define word_fsg_use_altpron |
( |
|
f | ) |
((f)->use_altpron) |
#define word_fsg_use_filler |
( |
|
f | ) |
((f)->use_filler) |
#define word_fsglink_from_state |
( |
|
l | ) |
((l)->from_state) |
#define word_fsglink_logs2prob |
( |
|
l | ) |
((l)->logs2prob) |
#define word_fsglink_to_state |
( |
|
l | ) |
((l)->to_state) |
#define word_fsglink_wid |
( |
|
l | ) |
((l)->wid) |
Typedef Documentation
Function Documentation
word_fsg_t* word_fsg_readfile |
( |
const char * |
file, |
|
|
int |
use_altpron, |
|
|
int |
use_filler, |
|
|
kbcore_t * |
kbc |
|
) |
| |
int32 word_fsg_set_final_state |
( |
word_fsg_t * |
fsg, |
|
|
int32 |
new_final_state |
|
) |
| |
int32 word_fsg_set_start_state |
( |
word_fsg_t * |
fsg, |
|
|
int32 |
new_start_state |
|
) |
| |
void word_fsg_write |
( |
word_fsg_t * |
fsg, |
|
|
FILE * |
fp |
|
) |
| |
void word_fsg_writefile |
( |
word_fsg_t * |
fsg, |
|
|
char * |
file |
|
) |
| |