Go to the source code of this file.
Data Structures | |
| struct | segTrajectoryParam |
| Parameters for the segmental model. More... | |
| struct | segDurationParam |
| Parameters for the duration model. More... | |
| struct | segMappingParam |
| Assigned for each state. More... | |
| struct | segStateInfo |
| Assigned for each state. More... | |
| struct | segTransProb |
| Transition probabilities. More... | |
| struct | segModelParam |
| Model parameters. More... | |
| struct | segModel |
| Model definition (label + parameter struct pointer). More... | |
| struct | segModelSet |
| Entire set for memory allocation. More... | |
Defines | |
| #define | segGetTVal(t, s, e) ((double)(t)-0.5*(double)((e)-(s))) |
Typedefs | |
| typedef segTrajectoryParam | SEG_TRJ |
| Parameters for the segmental model. | |
| typedef segDurationParam | SEG_DUR |
| Parameters for the duration model. | |
| typedef segMappingParam | SEG_MAP |
| Assigned for each state. | |
| typedef segStateInfo | SEG_STATE |
| Assigned for each state. | |
| typedef segTransProb | SEG_TRPROB |
| Transition probabilities. | |
| typedef segModelParam | SEG_MDPARAM |
| Model parameters. | |
| typedef segModel | SEG_MODEL |
| Model definition (label + parameter struct pointer). | |
| typedef segModelSet | SEG_MODEL_SET |
| Entire set for memory allocation. | |
Functions | |
| int | segMakeStrictLRTopology (SEG_MODEL_SET *modelSet) |
| Force models to maintain strict left-to-right topology. | |
| int | segCheckModelSet (SEG_MODEL_SET *modelSet) |
| Check the consistency of model parameter set. | |
| SEG_MODEL_SET * | segReadModelSet (char *modelList, char *tiedList, int maxDur) |
| Read a set of multi-level segmental-HMMs in the file of model name list. | |
| int | segWriteModelSet (SEG_MODEL_SET *modelSet, FILE *fp) |
| Write a set of models to a file. | |
| int | segWriteDump (SEG_MODEL_SET *modelSet, char *fName) |
| Write dump file contents. | |
| int segCheckModelSet | ( | SEG_MODEL_SET * | modelset | ) |
Check the consistency of model parameter set.
This function checks if a given model parameter set is consistent in terms of the dimensionality of vectors and matrices.
| [in] | modelset | Pointer to the model-set structure variable |
| NO_ERROR | Successful execution | |
| RTN_ERROR | Inconsistency found in the set |
| int segMakeStrictLRTopology | ( | SEG_MODEL_SET * | modelset | ) |
Force models to maintain strict left-to-right topology.
| [in,out] | modelset | Pointer to the model-set structure variable |
| NO_ERROR | Successful execution |
| SEG_MODEL_SET* segReadModelSet | ( | char * | modelList, | |
| char * | tiedList, | |||
| int | maxDur | |||
| ) |
Read a set of multi-level segmental-HMMs in the file of model name list.
| [in] | modelList | Name of file containing model file name list |
| [in] | tiedList | Name of file containing tied-phone list |
| [in] | maxDur | Maximal segment-duration |
| NULL | Memory allocation/File read error | |
| otherwise | Pointer to a read model set |
| int segWriteDump | ( | SEG_MODEL_SET * | modelset, | |
| char * | fName | |||
| ) |
Write dump file contents.
This function creates a dump file, which includes the label name, maximum segment-duration, the number of states, and duration count and skip count results, for debugging purpose.
| [in] | modelset | Pointer to the model-set structure variable |
| [in] | fName | Name of dump file |
| RTN_ERROR | File open error | |
| NO_ERROR | Successful execution |
| int segWriteModelSet | ( | SEG_MODEL_SET * | modelset, | |
| FILE * | fp | |||
| ) |
Write a set of models to a file.
| [in] | modelset | Pointer to the model-set structure variable |
| [in] | fp | File pointer |
| RTN_ERROR | Memory allocation error / File write error | |
| NO_ERROR | Successful execution |
1.5.1