20 #ifndef KALDI_LM_KALDI_RNNLM_H_ 21 #define KALDI_LM_KALDI_RNNLM_H_ 40 opts->
Register(
"unk-symbol", &unk_symbol,
"Symbol for out-of-vocabulary " 42 opts->
Register(
"eos-symbol", &eos_symbol,
"End of sentence symbol in " 50 const std::string &unk_prob_rspecifier,
51 const std::string &word_symbol_table_rxfilename,
52 const std::string &rnnlm_rxfilename);
59 const std::vector<float> &context_in,
60 std::vector<float> *context_out);
82 virtual StateId
Start() {
return start_state_; }
86 virtual Weight Final(StateId s);
88 virtual bool GetArc(StateId s, Label ilabel,
fst::StdArc* oarc);
91 typedef unordered_map<std::vector<Label>,
104 #endif // KALDI_LM_KALDI_RNNLM_H_ fst::StdArc::StateId StateId
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
fst::StdArc::StateId StateId
A hashing function-object for vectors.
int32 GetHiddenLayerSize() const
#define KALDI_DISALLOW_COPY_AND_ASSIGN(type)
std::vector< std::vector< float > > state_to_context_
std::vector< std::vector< Label > > state_to_wseq_
virtual void Register(const std::string &name, bool *ptr, const std::string &doc)=0
std::vector< std::string > label_to_word_
class DeterministicOnDemandFst is an "FST-like" base-class.
fst::StdArc::Weight Weight
fst::StdArc::Weight Weight
unordered_map< std::vector< Label >, StateId, VectorHasher< Label > > MapType
void Register(OptionsItf *opts)
KaldiRnnlmWrapper * rnnlm_