Cambridge SMT System
fst::Scorer< lm::np::State, lm::np::Model, IdBridgeT, HackScoreT > Struct Template Reference

#include <fstutils.applylmonthefly.hpp>

Public Types

typedef lm::np::Model KenLMModelT
 
typedef lm::np::State StateT
 

Public Member Functions

 Scorer (KenLMModelT &lmmodel, IdBridgeT const &idbridge, Scale< StateT > &nl, unsigned srcSize, std::vector< std::vector< unsigned > > const &srcWindows)
 
void operator() (StateT const &current, float &w, float &wp, int ilabel, int olabel, StateT &next)
 
StateT revertMappings (StateT const &s)
 

Public Attributes

IdBridgeT const & idbridge_
 
KenLMModelTlmmodel_
 
HackScoreT< StateThs_
 
Scale< StateT > & natlog10_
 
unsigned srcSize_
 
std::vector< std::vector< unsigned > > srcWindows_
 

Detailed Description

template<class IdBridgeT, template< class > class HackScoreT>
struct fst::Scorer< lm::np::State, lm::np::Model, IdBridgeT, HackScoreT >

Definition at line 165 of file fstutils.applylmonthefly.hpp.

Member Typedef Documentation

template<class IdBridgeT , template< class > class HackScoreT>
typedef lm::np::Model fst::Scorer< lm::np::State, lm::np::Model, IdBridgeT, HackScoreT >::KenLMModelT

Definition at line 168 of file fstutils.applylmonthefly.hpp.

template<class IdBridgeT , template< class > class HackScoreT>
typedef lm::np::State fst::Scorer< lm::np::State, lm::np::Model, IdBridgeT, HackScoreT >::StateT

Definition at line 169 of file fstutils.applylmonthefly.hpp.

Constructor & Destructor Documentation

template<class IdBridgeT , template< class > class HackScoreT>
fst::Scorer< lm::np::State, lm::np::Model, IdBridgeT, HackScoreT >::Scorer ( KenLMModelT lmmodel,
IdBridgeT const &  idbridge,
Scale< StateT > &  nl,
unsigned  srcSize,
std::vector< std::vector< unsigned > > const &  srcWindows 
)
inline

Definition at line 177 of file fstutils.applylmonthefly.hpp.

Member Function Documentation

template<class IdBridgeT , template< class > class HackScoreT>
void fst::Scorer< lm::np::State, lm::np::Model, IdBridgeT, HackScoreT >::operator() ( StateT const &  current,
float &  w,
float &  wp,
int  ilabel,
int  olabel,
StateT next 
)
inline

Definition at line 212 of file fstutils.applylmonthefly.hpp.

Here is the call graph for this function:

template<class IdBridgeT , template< class > class HackScoreT>
StateT fst::Scorer< lm::np::State, lm::np::Model, IdBridgeT, HackScoreT >::revertMappings ( StateT const &  s)
inline

Definition at line 275 of file fstutils.applylmonthefly.hpp.

Member Data Documentation

template<class IdBridgeT , template< class > class HackScoreT>
HackScoreT<StateT> fst::Scorer< lm::np::State, lm::np::Model, IdBridgeT, HackScoreT >::hs_

Definition at line 171 of file fstutils.applylmonthefly.hpp.

template<class IdBridgeT , template< class > class HackScoreT>
IdBridgeT const& fst::Scorer< lm::np::State, lm::np::Model, IdBridgeT, HackScoreT >::idbridge_

Definition at line 167 of file fstutils.applylmonthefly.hpp.

template<class IdBridgeT , template< class > class HackScoreT>
KenLMModelT& fst::Scorer< lm::np::State, lm::np::Model, IdBridgeT, HackScoreT >::lmmodel_

Definition at line 170 of file fstutils.applylmonthefly.hpp.

template<class IdBridgeT , template< class > class HackScoreT>
Scale<StateT>& fst::Scorer< lm::np::State, lm::np::Model, IdBridgeT, HackScoreT >::natlog10_

Definition at line 172 of file fstutils.applylmonthefly.hpp.

template<class IdBridgeT , template< class > class HackScoreT>
unsigned fst::Scorer< lm::np::State, lm::np::Model, IdBridgeT, HackScoreT >::srcSize_

Definition at line 173 of file fstutils.applylmonthefly.hpp.

template<class IdBridgeT , template< class > class HackScoreT>
std::vector< std::vector<unsigned> > fst::Scorer< lm::np::State, lm::np::Model, IdBridgeT, HackScoreT >::srcWindows_

Definition at line 175 of file fstutils.applylmonthefly.hpp.


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