libsent/src/phmm/gms_gprune.c File Reference

Calculate the GMS monophone HMM for Gaussian Mixture Selection using Gaussian pruning. More...

#include <sent/stddefs.h>
#include <sent/htk_hmm.h>
#include <sent/htk_param.h>
#include <sent/hmm.h>
#include <sent/hmm_calc.h>

Go to the source code of this file.

Defines

#define GS_MAX_PROB
 Compute only max for GS states.
#define LAST_BEST
 Compute last best Gaussians first.

Functions

void gms_gprune_init (HMMWork *wrk)
 Initialization of GMS HMM likelihood computation.
void gms_gprune_prepare (HMMWork *wrk)
 Prepare GMS HMM computation for the next speech input.
void gms_gprune_free (HMMWork *wrk)
 Free GMS related work area.
static LOGPROB calc_contprob_with_safe_pruning (HMMWork *wrk, HTK_HMM_Dens *binfo, LOGPROB thres)
 Compute only max by safe pruning.
static LOGPROB compute_g_max (HMMWork *wrk, HTK_HMM_State *stateinfo, int last_maxi, int *maxi_ret)
 Compute log output likelihood of a state.
void compute_gs_scores (HMMWork *wrk)
 Main function to compute all the GMS HMM states in a frame with the input vectore specified by OP_vec.


Detailed Description

Calculate the GMS monophone HMM for Gaussian Mixture Selection using Gaussian pruning.

Author:
Akinobu LEE
Date:
Thu Feb 17 15:05:08 2005
Revision
1.1.1.1

Definition in file gms_gprune.c.


Function Documentation

void gms_gprune_init ( HMMWork wrk  ) 

Initialization of GMS HMM likelihood computation.

Parameters:
wrk [i/o] HMM computation work area

Definition at line 43 of file gms_gprune.c.

Referenced by gms_init().

void gms_gprune_prepare ( HMMWork wrk  ) 

Prepare GMS HMM computation for the next speech input.

Parameters:
wrk [i/o] HMM computation work area

Definition at line 55 of file gms_gprune.c.

Referenced by gms_prepare().

void gms_gprune_free ( HMMWork wrk  ) 

Free GMS related work area.

Parameters:
wrk [i/o] HMM computation work area

Definition at line 70 of file gms_gprune.c.

Referenced by gms_free().

static LOGPROB calc_contprob_with_safe_pruning ( HMMWork wrk,
HTK_HMM_Dens binfo,
LOGPROB  thres 
) [static]

Compute only max by safe pruning.

Parameters:
wrk [i/o] HMM computation work area
binfo [in] Gaussian density
thres [in] constant pruning threshold
Returns:
the computed likelihood.

Definition at line 87 of file gms_gprune.c.

Referenced by compute_g_max().

static LOGPROB compute_g_max ( HMMWork wrk,
HTK_HMM_State stateinfo,
int  last_maxi,
int *  maxi_ret 
) [static]

Compute log output likelihood of a state.

Only maximum Gaussian will be computed.

Parameters:
wrk [i/o] HMM computation work area
stateinfo [in] HMM state to compute
last_maxi [in] the mixture id that got the maximum value at the previous frame, or -1 if not exist.
maxi_ret [out] tue mixture id that get the maximum value at this call.
Returns:
the log likelihood.

Definition at line 125 of file gms_gprune.c.

void compute_gs_scores ( HMMWork wrk  ) 

Main function to compute all the GMS HMM states in a frame with the input vectore specified by OP_vec.

This function assumes that this will be called for sequencial frame, since it utilizes the result of previous frame for faster pruning.

Parameters:
wrk [i/o] HMM computation work area

Definition at line 202 of file gms_gprune.c.

Referenced by do_gms().


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