|
PocketSphinx
0.6
|
Size definition of semantically units. More...
#include <float.h>#include <assert.h>#include <sphinxbase/prim_type.h>#include <sphinxbase/err.h>#include <sphinxbase/ckd_alloc.h>Go to the source code of this file.
Macros | |
| #define | BAD_S3CIPID ((s3cipid_t) -1) |
| Ci phone id. | |
| #define | NOT_S3CIPID(p) ((p)<0) |
| #define | IS_S3CIPID(p) ((p)>=0) |
| #define | MAX_S3CIPID 32767 |
| #define | BAD_S3PID ((s3pid_t) -1) |
| Phone id (triphone or ciphone) | |
| #define | NOT_S3PID(p) ((p)<0) |
| #define | IS_S3PID(p) ((p)>=0) |
| #define | MAX_S3PID ((int32)0x7ffffffe) |
| #define | BAD_S3SSID ((s3ssid_t) 0xffff) |
| Senone sequence id (triphone or ciphone) | |
| #define | NOT_S3SSID(p) ((p) == BAD_S3SSID) |
| #define | IS_S3SSID(p) ((p) != BAD_S3SSID) |
| #define | MAX_S3SSID ((s3ssid_t)0xfffe) |
| #define | BAD_S3TMATID ((s3tmatid_t) -1) |
| Transition matrix id; there can be as many as pids. | |
| #define | NOT_S3TMATID(t) ((t)<0) |
| #define | IS_S3TMATID(t) ((t)>=0) |
| #define | MAX_S3TMATID ((int32)0x7ffffffe) |
| #define | BAD_S3WID ((s3wid_t) -1) |
| Dictionary word id. | |
| #define | NOT_S3WID(w) ((w)<0) |
| #define | IS_S3WID(w) ((w)>=0) |
| #define | MAX_S3WID ((int32)0x7ffffffe) |
| #define | BAD_S3LMWID ((s3lmwid_t) 0xffff) |
| LM word id (uint16 for conserving space) | |
| #define | NOT_S3LMWID(w) ((w)==BAD_S3LMWID) |
| #define | IS_S3LMWID(w) ((w)!=BAD_S3LMWID) |
| #define | MAX_S3LMWID ((uint32)0xfffe) |
| #define | BAD_LMCLASSID (-1) |
| #define | BAD_S3LMWID32 ((s3lmwid32_t) 0x0fffffff) |
| LM word id (uint32 for conserving space) | |
| #define | NOT_S3LMWID32(w) ((w)==BAD_S3LMWID32) |
| #define | IS_S3LMWID32(w) ((w)!=BAD_S3LMWID32) |
| #define | MAX_S3LMWID32 ((uint32)0xfffffffe) |
| #define | BAD_LMWID(lm) (lm->is32bits? BAD_S3LMWID32 : BAD_S3LMWID) |
| #define | NOT_LMWID(lm, w) (lm->is32bits? NOT_S3LMWID32(w): NOT_S3LMWID(w)) |
| #define | IS_LMWID(lm, w) (lm->is32bits? IS_S3LMWID32(w): IS_S3LMWID(w)) |
| #define | MAX_LMWID(lm) (lm->is32bits? MAX_S3LMWID32: MAX_S3LMWID) |
| #define | BAD_S3LATID ((s3latid_t) -1) |
| Lattice entry id. | |
| #define | NOT_S3LATID(l) ((l)<0) |
| #define | IS_S3LATID(l) ((l)>=0) |
| #define | MAX_S3LATID ((int32)0x7ffffffe) |
| #define | BAD_S3FRMID ((s3frmid_t) -1) |
| Frame id (must be SIGNED integer) | |
| #define | NOT_S3FRMID(f) ((f)<0) |
| #define | IS_S3FRMID(f) ((f)>=0) |
| #define | MAX_S3FRMID ((int32)0x7ffe) |
| #define | BAD_S3SENID ((s3senid_t) 0xffff) |
| Senone id. | |
| #define | NOT_S3SENID(s) ((s) == BAD_S3SENID) |
| #define | IS_S3SENID(s) ((s) != BAD_S3SENID) |
| #define | MAX_S3SENID ((int16)0x7ffe) |
| #define | BAD_S3MGAUID ((s3mgauid_t) -1) |
| Mixture-gaussian codebook id. | |
| #define | NOT_S3MGAUID(m) ((m)<0) |
| #define | IS_S3MGAUID(m) ((m)>=0) |
| #define | MAX_S3MGAUID ((int32)0x00007ffe) |
| #define | S3_LOGPROB_ZERO ((int32) 0xc8000000) /** Integer version of log of zero Approx -infinity!! */ |
| #define | S3_LOGPROB_ZERO_F ((float32) -1e30) /** Float version of log of zero Approx -infinity!! */ |
| #define | RENORM_THRESH ((int32) ((S3_LOGPROB_ZERO)>>1)) /** Bestscore getting close to 0 */ |
| #define | S3_SUCCESS 0 |
| #define | S3_ERROR -1 |
| #define | S3_WARNING -2 |
| #define | MAX_N_STATE 20 |
| The maximum # of states for any given acoustic model. | |
| #define | MAX_N_ATTRIB 5 |
| The maximum # of attributes associated with any given acoustic model. | |
| #define | TRUE 1 |
| #define | FALSE 0 /* assume that true is never defined w/o false */ |
| #define | IO_ELAPSED 0 |
| #define | UTT_ELAPSED 1 |
| #define | UTT_IO_ELAPSED 2 |
| #define | UTT_BW_ELAPSED 3 |
| #define | TYING_NON_EMITTING (0xffffffff) |
| #define | TYING_NO_ID (0xffffffff) |
| #define | MAX_VERSION_LEN 128 |
| #define | MEG *1024*1024 |
Typedefs | |
| typedef int16 | s3cipid_t |
| Size definitions for more semantially meaningful units. More... | |
| typedef int32 | s3pid_t |
| typedef uint16 | s3ssid_t |
| typedef int32 | s3tmatid_t |
| typedef int32 | s3wid_t |
| typedef uint16 | s3lmwid_t |
| typedef uint32 | s3lmwid32_t |
| typedef int32 | s3latid_t |
| typedef int16 | s3frmid_t |
| typedef uint16 | s3senid_t |
| typedef int16 | s3mgauid_t |
Size definition of semantically units.
Common for both s3 and s3.X decoder.
Definition in file s3types.h.