Phonetisaurus  1.0
FST-based Grapheme-to-Phoneme conversion
Public Types | Public Member Functions | Public Attributes | List of all members
RnnLMDecoder< D > Class Template Reference

#include <RnnLMDecoder.h>

Public Types

typedef D Decodable
 
typedef vector< vector< Chunk > > RawResults
 
typedef Heap< Token *, TokenPointerCompare, false > Queue
 
typedef unordered_set< Token, TokenHash, TokenCompareTokenSet
 

Public Member Functions

 RnnLMDecoder (Decodable &decodable)
 
double Heuristic (int nstate, int nstates, double hcost)
 
VectorFst< StdArc > WordToRnnLMFst (const vector< string > &word)
 
SimpleResult Decode (const vector< string > &word, int beam, int kMax, int nbest, double thresh, const string &gpdelim, const string &gdelim, const string &skip)
 
RawResults DecodeRaw (const vector< string > &word, int beam, int kMax, int nbest, double thresh=0.0)
 

Public Attributes

RawResults results
 

Detailed Description

template<class D>
class RnnLMDecoder< D >

Definition at line 164 of file RnnLMDecoder.h.

Member Typedef Documentation

template<class D>
typedef D RnnLMDecoder< D >::Decodable

Definition at line 166 of file RnnLMDecoder.h.

template<class D>
typedef Heap<Token*, TokenPointerCompare, false> RnnLMDecoder< D >::Queue

Definition at line 168 of file RnnLMDecoder.h.

template<class D>
typedef vector<vector<Chunk> > RnnLMDecoder< D >::RawResults

Definition at line 167 of file RnnLMDecoder.h.

template<class D>
typedef unordered_set<Token, TokenHash, TokenCompare> RnnLMDecoder< D >::TokenSet

Definition at line 169 of file RnnLMDecoder.h.

Constructor & Destructor Documentation

template<class D>
RnnLMDecoder< D >::RnnLMDecoder ( Decodable decodable)
inline

Definition at line 171 of file RnnLMDecoder.h.

Member Function Documentation

template<class D>
SimpleResult RnnLMDecoder< D >::Decode ( const vector< string > &  word,
int  beam,
int  kMax,
int  nbest,
double  thresh,
const string &  gpdelim,
const string &  gdelim,
const string &  skip 
)
inline

Definition at line 206 of file RnnLMDecoder.h.

template<class D>
RawResults RnnLMDecoder< D >::DecodeRaw ( const vector< string > &  word,
int  beam,
int  kMax,
int  nbest,
double  thresh = 0.0 
)
inline

Definition at line 243 of file RnnLMDecoder.h.

template<class D>
double RnnLMDecoder< D >::Heuristic ( int  nstate,
int  nstates,
double  hcost 
)
inline

Definition at line 174 of file RnnLMDecoder.h.

template<class D>
VectorFst<StdArc> RnnLMDecoder< D >::WordToRnnLMFst ( const vector< string > &  word)
inline

Definition at line 181 of file RnnLMDecoder.h.

Member Data Documentation

template<class D>
RawResults RnnLMDecoder< D >::results

Definition at line 315 of file RnnLMDecoder.h.


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