Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

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 void 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.1.1.1

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:

  • Original phone HMM name,
  • Logical HMM name that is converted from above,
  • Physical or pseudo HMM name that will actually be used.

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 void 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 hmm").

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

Definition at line 289 of file hmm_check.c.

Referenced by initialize_dict().


Generated on Tue Mar 28 16:01:50 2006 for Julius by  doxygen 1.4.2