\doxysection{lm3g\+\_\+model\+\_\+s Struct Reference}
\label{structlm3g__model__s}\index{lm3g\_model\_s@{lm3g\_model\_s}}


Common internal structure for Sphinx 3-\/gram models.  




{\ttfamily \#include $<$lm3g\+\_\+model.\+h$>$}

\doxysubsubsection*{Data Fields}
\begin{DoxyCompactItemize}
\item 
\textbf{ unigram\+\_\+t} $\ast$ \textbf{ unigrams}
\item 
\textbf{ bigram\+\_\+t} $\ast$ \textbf{ bigrams}
\item 
\textbf{ trigram\+\_\+t} $\ast$ \textbf{ trigrams}
\item 
\textbf{ lmprob\+\_\+t} $\ast$ \textbf{ prob2}
\begin{DoxyCompactList}\small\item\em Table of actual bigram probs. \end{DoxyCompactList}\item 
int32 \textbf{ n\+\_\+prob2}
\begin{DoxyCompactList}\small\item\em prob2 size \end{DoxyCompactList}\item 
\textbf{ lmprob\+\_\+t} $\ast$ \textbf{ bo\+\_\+wt2}
\begin{DoxyCompactList}\small\item\em Table of actual bigram backoff weights. \end{DoxyCompactList}\item 
int32 \textbf{ n\+\_\+bo\+\_\+wt2}
\begin{DoxyCompactList}\small\item\em bo\+\_\+wt2 size \end{DoxyCompactList}\item 
\textbf{ lmprob\+\_\+t} $\ast$ \textbf{ prob3}
\begin{DoxyCompactList}\small\item\em Table of actual trigram probs. \end{DoxyCompactList}\item 
int32 \textbf{ n\+\_\+prob3}
\begin{DoxyCompactList}\small\item\em prob3 size \end{DoxyCompactList}\item 
int32 $\ast$ \textbf{ tseg\+\_\+base}
\begin{DoxyCompactList}\small\item\em tseg\+\_\+base[i$>$$>$LOG\+\_\+\+BG\+\_\+\+SEG\+\_\+\+SZ] = index of 1st trigram for bigram segment (i$>$$>$LOG\+\_\+\+BG\+\_\+\+SEG\+\_\+\+SZ) \end{DoxyCompactList}\item 
\textbf{ tginfo\+\_\+t} $\ast$$\ast$ \textbf{ tginfo}
\begin{DoxyCompactList}\small\item\em tginfo[lw2] is head of linked list of trigram information for some cached subset of bigrams ($\ast$,lw2). \end{DoxyCompactList}\item 
\textbf{ listelem\+\_\+alloc\+\_\+t} $\ast$ \textbf{ le}
\begin{DoxyCompactList}\small\item\em List element allocator for tginfo. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Common internal structure for Sphinx 3-\/gram models. 

Definition at line \textbf{ 142} of file \textbf{ lm3g\+\_\+model.\+h}.



\doxysubsection{Field Documentation}
\label{structlm3g__model__s_a58e72d8dd17a928d1e150e95483092ca} 
\index{lm3g\_model\_s@{lm3g\_model\_s}!bigrams@{bigrams}}
\index{bigrams@{bigrams}!lm3g\_model\_s@{lm3g\_model\_s}}
\doxysubsubsection{bigrams}
{\footnotesize\ttfamily \textbf{ bigram\+\_\+t}$\ast$ lm3g\+\_\+model\+\_\+s\+::bigrams}



Definition at line \textbf{ 144} of file \textbf{ lm3g\+\_\+model.\+h}.

\label{structlm3g__model__s_a7ee629aa1b8e88529127cf4da470d80f} 
\index{lm3g\_model\_s@{lm3g\_model\_s}!bo\_wt2@{bo\_wt2}}
\index{bo\_wt2@{bo\_wt2}!lm3g\_model\_s@{lm3g\_model\_s}}
\doxysubsubsection{bo\_wt2}
{\footnotesize\ttfamily \textbf{ lmprob\+\_\+t}$\ast$ lm3g\+\_\+model\+\_\+s\+::bo\+\_\+wt2}



Table of actual bigram backoff weights. 



Definition at line \textbf{ 148} of file \textbf{ lm3g\+\_\+model.\+h}.

\label{structlm3g__model__s_a2c96ba8aa34632e4d42908f9384d1b01} 
\index{lm3g\_model\_s@{lm3g\_model\_s}!le@{le}}
\index{le@{le}!lm3g\_model\_s@{lm3g\_model\_s}}
\doxysubsubsection{le}
{\footnotesize\ttfamily \textbf{ listelem\+\_\+alloc\+\_\+t}$\ast$ lm3g\+\_\+model\+\_\+s\+::le}



List element allocator for tginfo. 



Definition at line \textbf{ 156} of file \textbf{ lm3g\+\_\+model.\+h}.

\label{structlm3g__model__s_ad4bbdd65d13712fe653afe8b1de9b096} 
\index{lm3g\_model\_s@{lm3g\_model\_s}!n\_bo\_wt2@{n\_bo\_wt2}}
\index{n\_bo\_wt2@{n\_bo\_wt2}!lm3g\_model\_s@{lm3g\_model\_s}}
\doxysubsubsection{n\_bo\_wt2}
{\footnotesize\ttfamily int32 lm3g\+\_\+model\+\_\+s\+::n\+\_\+bo\+\_\+wt2}



bo\+\_\+wt2 size 



Definition at line \textbf{ 149} of file \textbf{ lm3g\+\_\+model.\+h}.

\label{structlm3g__model__s_a273e6ea4c39d1a563cc59f00b4b6ee98} 
\index{lm3g\_model\_s@{lm3g\_model\_s}!n\_prob2@{n\_prob2}}
\index{n\_prob2@{n\_prob2}!lm3g\_model\_s@{lm3g\_model\_s}}
\doxysubsubsection{n\_prob2}
{\footnotesize\ttfamily int32 lm3g\+\_\+model\+\_\+s\+::n\+\_\+prob2}



prob2 size 



Definition at line \textbf{ 147} of file \textbf{ lm3g\+\_\+model.\+h}.

\label{structlm3g__model__s_add28369f51e657ee54deed5291c84d09} 
\index{lm3g\_model\_s@{lm3g\_model\_s}!n\_prob3@{n\_prob3}}
\index{n\_prob3@{n\_prob3}!lm3g\_model\_s@{lm3g\_model\_s}}
\doxysubsubsection{n\_prob3}
{\footnotesize\ttfamily int32 lm3g\+\_\+model\+\_\+s\+::n\+\_\+prob3}



prob3 size 



Definition at line \textbf{ 151} of file \textbf{ lm3g\+\_\+model.\+h}.

\label{structlm3g__model__s_a34acf8c1ffaa4bb712ce1196eea59678} 
\index{lm3g\_model\_s@{lm3g\_model\_s}!prob2@{prob2}}
\index{prob2@{prob2}!lm3g\_model\_s@{lm3g\_model\_s}}
\doxysubsubsection{prob2}
{\footnotesize\ttfamily \textbf{ lmprob\+\_\+t}$\ast$ lm3g\+\_\+model\+\_\+s\+::prob2}



Table of actual bigram probs. 



Definition at line \textbf{ 146} of file \textbf{ lm3g\+\_\+model.\+h}.

\label{structlm3g__model__s_adc9ed2ad1f2daefdd40713a9dd371673} 
\index{lm3g\_model\_s@{lm3g\_model\_s}!prob3@{prob3}}
\index{prob3@{prob3}!lm3g\_model\_s@{lm3g\_model\_s}}
\doxysubsubsection{prob3}
{\footnotesize\ttfamily \textbf{ lmprob\+\_\+t}$\ast$ lm3g\+\_\+model\+\_\+s\+::prob3}



Table of actual trigram probs. 



Definition at line \textbf{ 150} of file \textbf{ lm3g\+\_\+model.\+h}.

\label{structlm3g__model__s_a9be0c8197334e3ef632e9e3abdad6a4f} 
\index{lm3g\_model\_s@{lm3g\_model\_s}!tginfo@{tginfo}}
\index{tginfo@{tginfo}!lm3g\_model\_s@{lm3g\_model\_s}}
\doxysubsubsection{tginfo}
{\footnotesize\ttfamily \textbf{ tginfo\+\_\+t}$\ast$$\ast$ lm3g\+\_\+model\+\_\+s\+::tginfo}



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



Definition at line \textbf{ 154} of file \textbf{ lm3g\+\_\+model.\+h}.

\label{structlm3g__model__s_a9d10497789f7406433bccae79db63b9f} 
\index{lm3g\_model\_s@{lm3g\_model\_s}!trigrams@{trigrams}}
\index{trigrams@{trigrams}!lm3g\_model\_s@{lm3g\_model\_s}}
\doxysubsubsection{trigrams}
{\footnotesize\ttfamily \textbf{ trigram\+\_\+t}$\ast$ lm3g\+\_\+model\+\_\+s\+::trigrams}



Definition at line \textbf{ 145} of file \textbf{ lm3g\+\_\+model.\+h}.

\label{structlm3g__model__s_a6cec34be6a748a9cece94ae3dfc1e8d7} 
\index{lm3g\_model\_s@{lm3g\_model\_s}!tseg\_base@{tseg\_base}}
\index{tseg\_base@{tseg\_base}!lm3g\_model\_s@{lm3g\_model\_s}}
\doxysubsubsection{tseg\_base}
{\footnotesize\ttfamily int32$\ast$ 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 \textbf{ 152} of file \textbf{ lm3g\+\_\+model.\+h}.

\label{structlm3g__model__s_a94b4a80531261a20036cbc41b76b3f3a} 
\index{lm3g\_model\_s@{lm3g\_model\_s}!unigrams@{unigrams}}
\index{unigrams@{unigrams}!lm3g\_model\_s@{lm3g\_model\_s}}
\doxysubsubsection{unigrams}
{\footnotesize\ttfamily \textbf{ unigram\+\_\+t}$\ast$ lm3g\+\_\+model\+\_\+s\+::unigrams}



Definition at line \textbf{ 143} of file \textbf{ lm3g\+\_\+model.\+h}.



The documentation for this struct was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
src/libsphinxbase/lm/lm3g\+\_\+model.\+h\end{DoxyCompactItemize}
