libak
0.4.0
|
Functions | |
void | ak_initializer_free (akInitializer *ini) |
Frees memory. | |
akInitializer * | ak_initializer_new (const akCModel *cmodel, const akSeqs *seqs, char **err) |
Gets an akInitializer. | |
int | ak_init (akInitializer *ini, akCMiCounts *counts, const akFea *fea, const size_t seq) |
Initializes character models from a sample and its transcription. |
int ak_init | ( | akInitializer * | ini, |
akCMiCounts * | counts, | ||
const akFea * | fea, | ||
const size_t | seq | ||
) |
Initializes character models from a sample and its transcription.
This function linearly segments the input frames, according to the number of character of its transcription. According to this segmentation, character model counts are increased using ak_init_char. The transcription is specified as an integer code according to the sequence manager used during the creation of the auxiliary data.
ini | Initializer. |
counts | Integer counts related to cmodel. |
fea | A feature vector manager, which must contain a sequence of feature vectors of an adequate type for the cmodel. |
seq | The code of the character sequence related to fea. |
void ak_initializer_free | ( | akInitializer * | ini | ) |
Frees memory.
Frees the memory allocated for the initializer.
ini | The initializer. |
akInitializer* ak_initializer_new | ( | const akCModel * | cmodel, |
const akSeqs * | seqs, | ||
char ** | err | ||
) |
Gets an akInitializer.
This function creates a new initializer used to initialize character models from samples and their transcriptions by linear segmentation. Currently supported types are: see ak_char_initializer_new.
cmodel | The character models. |
seqs | A character sequence manager containing the transcription of the samples. |
err | Pointer to string variable. If not NULL an error message is allocated in the variable in case of error. |