#include <s3types.h>
#include <prim_type.h>
#include <mdef.h>
#include <dict.h>
Go to the source code of this file.
|
#define | ctxt_table_left_ctxt_ssid(ct, l, b, r) ((ct)->lcssid[b][r].ssid[ct->lcssid[b][r].cimap[l]]) |
|
#define | ctxt_table_word_int_ssid(ct, wid, wpos) ((ct)->wwssid[wid][wpos]) |
|
#define | ctxt_table_right_ctxt_ssid(ct, l, b, r) ((ct)->rcssid[b][l].ssid[ct->rcssid[b][l].cimap[r]]) |
|
#define | ctxt_table_single_phone_ssid(ct, l, b, r) ((ct)->lrcssid[b][l].ssid[ct->lrcssid[b][l].cimap[r]]) |
|
|
ctxt_table_t * | ctxt_table_init (dict_t *dict, mdef_t *mdef) |
|
void | ctxt_table_free (ctxt_table_t *ct) |
|
void | get_rcssid (ctxt_table_t *ct, s3wid_t w, s3ssid_t **ssid, int32 *nssid, dict_t *dict) |
|
void | get_lcssid (ctxt_table_t *ct, s3wid_t w, s3ssid_t **ssid, int32 *nssid, dict_t *dict) |
|
s3cipid_t * | get_rc_cimap (ctxt_table_t *ct, s3wid_t w, dict_t *dict) |
|
s3cipid_t * | get_lc_cimap (ctxt_table_t *ct, s3wid_t w, dict_t *dict) |
|
int32 | ct_get_rc_nssid (ctxt_table_t *ct, s3wid_t w, dict_t *dict) |
|
#define ctxt_table_left_ctxt_ssid |
( |
|
ct, |
|
|
|
l, |
|
|
|
b, |
|
|
|
r |
|
) |
| ((ct)->lcssid[b][r].ssid[ct->lcssid[b][r].cimap[l]]) |
#define ctxt_table_right_ctxt_ssid |
( |
|
ct, |
|
|
|
l, |
|
|
|
b, |
|
|
|
r |
|
) |
| ((ct)->rcssid[b][l].ssid[ct->rcssid[b][l].cimap[r]]) |
#define ctxt_table_single_phone_ssid |
( |
|
ct, |
|
|
|
l, |
|
|
|
b, |
|
|
|
r |
|
) |
| ((ct)->lrcssid[b][l].ssid[ct->lrcssid[b][l].cimap[r]]) |
#define ctxt_table_word_int_ssid |
( |
|
ct, |
|
|
|
wid, |
|
|
|
wpos |
|
) |
| ((ct)->wwssid[wid][wpos]) |
Get number of right context for the last phone of a word.
- Returns
- number of right context
- Parameters
-
ct | A context table |
w | Word for query. |
dict | A dictionary |
Referenced by word_enter().
Uninitialize a context tableContext Table
Initialize a context table
- Parameters
-
dict | A dictionary |
mdef | A model definition |
Get the context-independent phone map for the last phone of a parcitular word
- Returns
- an array of ciphone ID.
- Parameters
-
ct | A context table |
w | A word for query |
dict | A dictionary |
Referenced by word_enter().
Get the array of left context senone sequence ID for the first phone.
- Parameters
-
ct | A context table |
w | A word for query |
ssid | Out: An array of right context SSID |
nssid | Out: Number of SSID |
dict | In: a dictionary |
Get the context-independent phone map for the last phone of a parcitular word
- Returns
- an array of ciphone ID.
- Parameters
-
ct | A context table |
w | A word for query |
dict | A dictionary |
Referenced by word_trans().
Get the array of right context senone sequence ID for the last phone.
- Parameters
-
ct | A context table |
w | A word for query |
ssid | Out: An array of right context phone ID |
nssid | Out: Number of SSID |
dict | In: a dictionary |
Referenced by whmm_transition().