#include <julius.h>
Include dependency graph for word_align.c:
Go to the source code of this file.
Defines | |
#define | PER_WORD 1 |
#define | PER_PHONEME 2 |
#define | PER_STATE 3 |
Functions | |
static HMM_Logical ** | make_phseq (WORD_ID *wseq, short num, int *num_ret, int **end_ret, int per_what) |
static void | do_align (WORD_ID *words, short wnum, HTK_Param *param, int per_what) |
void | word_align (WORD_ID *words, short wnum, HTK_Param *param) |
void | word_rev_align (WORD_ID *revwords, short wnum, HTK_Param *param) |
void | phoneme_align (WORD_ID *words, short num, HTK_Param *param) |
void | phoneme_rev_align (WORD_ID *revwords, short num, HTK_Param *param) |
void | state_align (WORD_ID *words, short num, HTK_Param *param) |
void | state_rev_align (WORD_ID *revwords, short num, HTK_Param *param) |
Julius/Julian performs the forced alignment as a post-processing of recognition process. Recomputation of Viterbi path on the recognized word sequence toward input speech will be done after the recognition to get better alignment.
Definition in file word_align.c.
static HMM_Logical** make_phseq | ( | WORD_ID * | wseq, | |
short | num, | |||
int * | num_ret, | |||
int ** | end_ret, | |||
int | per_what | |||
) | [static] |
Make the whole sentence HMM from given word sequence by connecting each phoneme HMM.
wseq | [in] word sequence to align | |
num | [in] number of wseq | |
num_ret | [out] number of HMM contained in the generated sentence HMM | |
end_ret | [out] sequence of state location as alignment unit | |
per_what | [in] specify the alignment unit (word / phoneme / state) |
Definition at line 77 of file word_align.c.
Referenced by do_align().
Build sentence HMM, call viterbi_segment() and output result.
words | [in] word sequence of the sentence | |
wnum | [in] number of words in words | |
param | [in] input parameter vector | |
per_what | [in] specify the alignment unit (word / phoneme / state) |
Definition at line 187 of file word_align.c.
Referenced by phoneme_align(), phoneme_rev_align(), state_align(), state_rev_align(), word_align(), and word_rev_align().
Do forced alignment per word for the given word sequence.
words | [in] word sequence | |
wnum | [in] length of words | |
param | [in] input parameter vectors |
Definition at line 381 of file word_align.c.
Do forced alignment per word for the given word sequence (reversed order).
revwords | [in] word sequence in reversed direction | |
wnum | [in] length of revwords | |
param | [in] input parameter vectors |
Definition at line 403 of file word_align.c.
Referenced by result_reorder_and_output().
Do forced alignment per phoneme for the given word sequence.
words | [in] word sequence | |
num | [in] length of words | |
param | [in] input parameter vectors |
Definition at line 430 of file word_align.c.
Do forced alignment per phoneme for the given word sequence (reversed order).
revwords | [in] word sequence in reversed direction | |
num | [in] length of revwords | |
param | [in] input parameter vectors |
Definition at line 452 of file word_align.c.
Referenced by result_reorder_and_output().
Do forced alignment per HMM state for the given word sequence.
words | [in] word sequence | |
num | [in] length of words | |
param | [in] input parameter vectors |
Definition at line 479 of file word_align.c.
Do forced alignment per state for the given word sequence (reversed order).
revwords | [in] word sequence in reversed direction | |
num | [in] length of revwords | |
param | [in] input parameter vectors |
Definition at line 501 of file word_align.c.
Referenced by result_reorder_and_output().