Classes | Functions
interp.h File Reference

Interpolation of CD/CI senones. Interpolation is used in the time of SCHMM and it is still a very useful technique for CDHMM as some experiments shown in Broadcast news evaluation in 99. More...

#include <s3types.h>
#include <logmath.h>

Go to the source code of this file.

Classes

struct  interp_t
 Wrapper structure of CD/CI interpolation. More...
 
struct  interp_t::interp_wt_s
 Quick and Dirty wrapper of the CD and CI weight. More...
 

Functions

interp_tinterp_init (const char *interpfile, logmath_t *logmath)
 
int32 interp_cd_ci (interp_t *ip, int32 *senscr, int32 cd, int32 ci)
 
int32 interp_all (interp_t *ip, int32 *senscr, s3senid_t *cimap, int32 n_ci_sen)
 

Detailed Description

Interpolation of CD/CI senones. Interpolation is used in the time of SCHMM and it is still a very useful technique for CDHMM as some experiments shown in Broadcast news evaluation in 99.

Function Documentation

◆ interp_all()

int32 interp_all ( interp_t ip,
int32 *  senscr,
s3senid_t cimap,
int32  n_ci_sen 
)

Interpolate each CD senone with its corresponding CI senone score.

Returns
0 if successful, -1 otherwise.
Parameters
ipIn: Interpolation weights parameters
senscrIn/Out: senscr[cd] interpolated with senscr[cimap[cd]], for cd >= n_ci_sen
cimapIn: see senscr above
n_ci_senIn: see senscr above

◆ interp_cd_ci()

int32 interp_cd_ci ( interp_t ip,
int32 *  senscr,
int32  cd,
int32  ci 
)

Interpolate a single given CD senone with the given CI senone score.

Returns
0 if successful, -1 otherwise.
Parameters
ipIn: Interpolation weights parameters
senscrIn/Out: senscr[cd] interpolated with senscr[ci]
cdIn: see senscr above
ciIn: see senscr above

◆ interp_init()

interp_t* interp_init ( const char *  interpfile,
logmath_t *  logmath 
)

Read a set of CD/CI senone interpolation weights from the given file. Return value: pointer to interpolation structure created. Caller MUST NOT change its contents.

Returns
an initialized interp_t structure