libjulius/src/hmm_check.c File Reference

Triphone checker on word dictionary. More...

#include <julius/julius.h>

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)
 Read in line from stdin as phoneme sequence and try convertion to triphone for checking.
void hmm_check (RecogProcess *r)
 Mode to do interactive triphone conversion check ("-check triphone").


Detailed Description

Triphone checker on word dictionary.

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:

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 81 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 260 of file hmm_check.c.

Referenced by hmm_check().

void hmm_check ( RecogProcess r  ) 

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

Parameters:
r [in] recognition process instance

Definition at line 303 of file hmm_check.c.

Referenced by j_launch_recognition_instance().

Here is the caller graph for this function:


Generated on Tue Dec 18 16:01:07 2007 for Julius by  doxygen 1.5.4