coversion of dictionary ID to LM ID. More...
Go to the source code of this file.
Functions | |
s3lmwid32_t * | wid_dict_lm_map (dict_t *dict, lm_t *lm, int32 lw) |
int32 | wid_wordprob2alt (dict_t *dict, wordprob_t *wp, int32 n) |
coversion of dictionary ID to LM ID.
s3lmwid32_t* wid_dict_lm_map | ( | dict_t * | dict, |
lm_t * | lm, | ||
int32 | lw | ||
) |
Create mappings between dictionary and LM word-IDs. In short:
dict | In: Dictionary |
lm | In/Out: LM; lm->ug[].dictwid values are updated. |
lw | In: Language Weight |
int32 wid_wordprob2alt | ( | dict_t * | dict, |
wordprob_t * | wp, | ||
int32 | n | ||
) |
Augment the given wordprob array with alternative pronunciations from the dictionary. Return value: #entries in the augmented wordprob array (including the original ones).
dict | In: Dictionary |
wp | In/Out: Input wordprob array, to be augmented with alternative pronunciations for the entries that already exist in it. Caller must have allocated this array. |
n | In: #Input entries in the wordprob array |