\doxysection{ngram\+\_\+class\+\_\+s Struct Reference}
\label{structngram__class__s}\index{ngram\_class\_s@{ngram\_class\_s}}


Implementation of ngram\+\_\+class\+\_\+t.  




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

\doxysubsubsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \textbf{ ngram\+\_\+hash\+\_\+s}
\begin{DoxyCompactList}\small\item\em Custom hash table for additional words. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsubsection*{Data Fields}
\begin{DoxyCompactItemize}
\item 
int32 \textbf{ tag\+\_\+wid}
\begin{DoxyCompactList}\small\item\em Base word ID for this class tag. \end{DoxyCompactList}\item 
int32 \textbf{ start\+\_\+wid}
\begin{DoxyCompactList}\small\item\em Starting base word ID for this class\textquotesingle{} words. \end{DoxyCompactList}\item 
int32 \textbf{ n\+\_\+words}
\begin{DoxyCompactList}\small\item\em Number of base words for this class. \end{DoxyCompactList}\item 
int32 $\ast$ \textbf{ prob1}
\begin{DoxyCompactList}\small\item\em Probability table for base words. \end{DoxyCompactList}\item 
\label{structngram__class__s_aab28f6b41e4020455ff2484a6fa850bb} 
struct \textbf{ ngram\+\_\+class\+\_\+s\+::ngram\+\_\+hash\+\_\+s} $\ast$ {\bfseries nword\+\_\+hash}
\item 
int32 \textbf{ n\+\_\+hash}
\begin{DoxyCompactList}\small\item\em Number of buckets in nword\+\_\+hash (power of 2) \end{DoxyCompactList}\item 
int32 \textbf{ n\+\_\+hash\+\_\+inuse}
\begin{DoxyCompactList}\small\item\em Number of words in nword\+\_\+hash. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Implementation of ngram\+\_\+class\+\_\+t. 

Definition at line \textbf{ 83} of file \textbf{ ngram\+\_\+model\+\_\+internal.\+h}.



\doxysubsection{Field Documentation}
\label{structngram__class__s_a7f450019eb6dc2e31b18eb3ab6009920} 
\index{ngram\_class\_s@{ngram\_class\_s}!n\_hash@{n\_hash}}
\index{n\_hash@{n\_hash}!ngram\_class\_s@{ngram\_class\_s}}
\doxysubsubsection{n\_hash}
{\footnotesize\ttfamily int32 ngram\+\_\+class\+\_\+s\+::n\+\_\+hash}



Number of buckets in nword\+\_\+hash (power of 2) 



Definition at line \textbf{ 96} of file \textbf{ ngram\+\_\+model\+\_\+internal.\+h}.



Referenced by \textbf{ ngram\+\_\+model\+\_\+add\+\_\+class\+\_\+word()}, and \textbf{ ngram\+\_\+model\+\_\+free()}.

\label{structngram__class__s_a79438cd582363800bc05da31a9ca49d6} 
\index{ngram\_class\_s@{ngram\_class\_s}!n\_hash\_inuse@{n\_hash\_inuse}}
\index{n\_hash\_inuse@{n\_hash\_inuse}!ngram\_class\_s@{ngram\_class\_s}}
\doxysubsubsection{n\_hash\_inuse}
{\footnotesize\ttfamily int32 ngram\+\_\+class\+\_\+s\+::n\+\_\+hash\+\_\+inuse}



Number of words in nword\+\_\+hash. 



Definition at line \textbf{ 97} of file \textbf{ ngram\+\_\+model\+\_\+internal.\+h}.



Referenced by \textbf{ ngram\+\_\+model\+\_\+add\+\_\+class\+\_\+word()}.

\label{structngram__class__s_af13562cbc44647435f315b18df5688dc} 
\index{ngram\_class\_s@{ngram\_class\_s}!n\_words@{n\_words}}
\index{n\_words@{n\_words}!ngram\_class\_s@{ngram\_class\_s}}
\doxysubsubsection{n\_words}
{\footnotesize\ttfamily int32 ngram\+\_\+class\+\_\+s\+::n\+\_\+words}



Number of base words for this class. 



Definition at line \textbf{ 86} of file \textbf{ ngram\+\_\+model\+\_\+internal.\+h}.



Referenced by \textbf{ ngram\+\_\+model\+\_\+add\+\_\+class\+\_\+word()}, and \textbf{ ngram\+\_\+model\+\_\+free()}.

\label{structngram__class__s_a50077f48f135f1c666745a21574e4205} 
\index{ngram\_class\_s@{ngram\_class\_s}!prob1@{prob1}}
\index{prob1@{prob1}!ngram\_class\_s@{ngram\_class\_s}}
\doxysubsubsection{prob1}
{\footnotesize\ttfamily int32$\ast$ ngram\+\_\+class\+\_\+s\+::prob1}



Probability table for base words. 



Definition at line \textbf{ 87} of file \textbf{ ngram\+\_\+model\+\_\+internal.\+h}.



Referenced by \textbf{ ngram\+\_\+model\+\_\+add\+\_\+class\+\_\+word()}.

\label{structngram__class__s_a370c88602c7c1f7e3ff1a767c027f5cb} 
\index{ngram\_class\_s@{ngram\_class\_s}!start\_wid@{start\_wid}}
\index{start\_wid@{start\_wid}!ngram\_class\_s@{ngram\_class\_s}}
\doxysubsubsection{start\_wid}
{\footnotesize\ttfamily int32 ngram\+\_\+class\+\_\+s\+::start\+\_\+wid}



Starting base word ID for this class\textquotesingle{} words. 



Definition at line \textbf{ 85} of file \textbf{ ngram\+\_\+model\+\_\+internal.\+h}.



Referenced by \textbf{ ngram\+\_\+model\+\_\+free()}.

\label{structngram__class__s_ab5f3cc0142c9fd91b3c3d0e59906b556} 
\index{ngram\_class\_s@{ngram\_class\_s}!tag\_wid@{tag\_wid}}
\index{tag\_wid@{tag\_wid}!ngram\_class\_s@{ngram\_class\_s}}
\doxysubsubsection{tag\_wid}
{\footnotesize\ttfamily int32 ngram\+\_\+class\+\_\+s\+::tag\+\_\+wid}



Base word ID for this class tag. 



Definition at line \textbf{ 84} of file \textbf{ ngram\+\_\+model\+\_\+internal.\+h}.



Referenced by \textbf{ ngram\+\_\+model\+\_\+add\+\_\+class\+\_\+word()}, \textbf{ ngram\+\_\+ng\+\_\+prob()}, and \textbf{ ngram\+\_\+ng\+\_\+score()}.



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