julius/hmm_check.c File Reference

Functions for checking triphone model. More...

#include <julius.h>

Include dependency graph for hmm_check.c:

Go to the source code of this file.

Defines

#define PHSTEP   10
 Malloc step for phoneme conversion.

Functions

static HMM_Logical ** new_str2phseq (char *str, HTK_HMM_INFO *hmminfo, int *len_ret)
 Convert phoneme sequences to logical HMM sequences, and output the result.
static boolean test_expand_triphone (HTK_HMM_INFO *hmminfo)
void hmm_check (HTK_HMM_INFO *hmminfo, WORD_INFO *winfo)


Detailed Description

Functions for checking triphone model.

Author:
Akinobu LEE
Date:
Thu Mar 17 20:50:07 2005
Revision
1.5

Definition in file hmm_check.c.


Function Documentation

static HMM_Logical** new_str2phseq ( char *  str,
HTK_HMM_INFO hmminfo,
int *  len_ret 
) [static]

Convert phoneme sequences to logical HMM sequences, and output the result.

This function is for testing procedure to convert words in dictionary to corresponding HMM sequences in Julius/Julian, given an HMMList and HTK HMM definition.

Given a space-separated list of phoneme names in a string, each phonemes will be converted to context-dependent style (if using triphone model), and then converted to HMM sequence that will finally be used for recognition. Then, the following data will be output for all HMM:

Additionally, specifying '|' in the string gives a word boundary between phonemes, and triphone conversion will consider the cross-word expansion.

Parameters:
str [i/o] string that contains space-saparated phoneme sequence.
hmminfo [in] HMM definition structure
len_ret [out] num of elements in the return value
Returns:
the newly allocated pointer array to the converted logical HMMs.

Definition at line 80 of file hmm_check.c.

Referenced by test_expand_triphone().

static boolean test_expand_triphone ( HTK_HMM_INFO hmminfo  )  [static]

Read in line from stdin as phoneme sequence and try convertion to triphone for checking.

Parameters:
hmminfo [in] HMM definition structure

Definition at line 252 of file hmm_check.c.

Referenced by hmm_check().

void hmm_check ( HTK_HMM_INFO hmminfo,
WORD_INFO winfo 
)

Mode to do interactive triphone conversion check ("-check triphone").

Parameters:
hmminfo [in] HMM definition structure
winfo [in] word dictionary

Definition at line 294 of file hmm_check.c.

Referenced by initialize_dict(), and multigram_read_file().


Generated on Tue Dec 26 12:53:32 2006 for Julian by  doxygen 1.5.0