SphinxBase 0.6
lm3g_model_s Struct Reference

Common internal structure for Sphinx 3-gram models. More...

#include <lm3g_model.h>

Data Fields

unigram_tunigrams
 
bigram_tbigrams
 
trigram_ttrigrams
 
lmprob_tprob2
 Table of actual bigram probs.
 
int32 n_prob2
 prob2 size
 
lmprob_tbo_wt2
 Table of actual bigram backoff weights.
 
int32 n_bo_wt2
 bo_wt2 size
 
lmprob_tprob3
 Table of actual trigram probs.
 
int32 n_prob3
 prob3 size
 
int32 * tseg_base
 tseg_base[i>>LOG_BG_SEG_SZ] = index of 1st trigram for bigram segment (i>>LOG_BG_SEG_SZ)
 
tginfo_t ** tginfo
 tginfo[lw2] is head of linked list of trigram information for some cached subset of bigrams (*,lw2).
 
listelem_alloc_tle
 List element allocator for tginfo.
 

Detailed Description

Common internal structure for Sphinx 3-gram models.

Definition at line 142 of file lm3g_model.h.

Field Documentation

◆ bigrams

bigram_t* lm3g_model_s::bigrams

Definition at line 144 of file lm3g_model.h.

◆ bo_wt2

lmprob_t* lm3g_model_s::bo_wt2

Table of actual bigram backoff weights.

Definition at line 148 of file lm3g_model.h.

◆ le

listelem_alloc_t* lm3g_model_s::le

List element allocator for tginfo.

Definition at line 156 of file lm3g_model.h.

◆ n_bo_wt2

int32 lm3g_model_s::n_bo_wt2

bo_wt2 size

Definition at line 149 of file lm3g_model.h.

◆ n_prob2

int32 lm3g_model_s::n_prob2

prob2 size

Definition at line 147 of file lm3g_model.h.

◆ n_prob3

int32 lm3g_model_s::n_prob3

prob3 size

Definition at line 151 of file lm3g_model.h.

◆ prob2

lmprob_t* lm3g_model_s::prob2

Table of actual bigram probs.

Definition at line 146 of file lm3g_model.h.

◆ prob3

lmprob_t* lm3g_model_s::prob3

Table of actual trigram probs.

Definition at line 150 of file lm3g_model.h.

◆ tginfo

tginfo_t** lm3g_model_s::tginfo

tginfo[lw2] is head of linked list of trigram information for some cached subset of bigrams (*,lw2).

Definition at line 154 of file lm3g_model.h.

◆ trigrams

trigram_t* lm3g_model_s::trigrams

Definition at line 145 of file lm3g_model.h.

◆ tseg_base

int32* lm3g_model_s::tseg_base

tseg_base[i>>LOG_BG_SEG_SZ] = index of 1st trigram for bigram segment (i>>LOG_BG_SEG_SZ)

Definition at line 152 of file lm3g_model.h.

◆ unigrams

unigram_t* lm3g_model_s::unigrams

Definition at line 143 of file lm3g_model.h.


The documentation for this struct was generated from the following file: