BaumWelch  baumwelch-0.3.8
OpenGrm-BaumWelch library
Public Types | Public Member Functions | List of all members
fst::internal::StepwiseBaumWelchTrainer< Arc, ExpectationTable > Class Template Reference

#include <train.h>

Public Types

using Weight = typename Arc::Weight
 
using Sum = LogAdder< Weight >
 

Public Member Functions

 StepwiseBaumWelchTrainer (float alpha=kAlpha, int batch_size=0, const CascadeOptions &opts=CascadeOptions())
 
Weight Batch (FarReader< Arc > &input, FarReader< Arc > &output, MutableFst< Arc > *model)
 
Weight Train (FarReader< Arc > &input, FarReader< Arc > &output, MutableFst< Arc > *model)
 
void Normalize (MutableFst< Arc > *model)
 

Detailed Description

template<class Arc, class ExpectationTable>
class fst::internal::StepwiseBaumWelchTrainer< Arc, ExpectationTable >

Definition at line 145 of file train.h.

Member Typedef Documentation

template<class Arc, class ExpectationTable>
using fst::internal::StepwiseBaumWelchTrainer< Arc, ExpectationTable >::Sum = LogAdder<Weight>

Definition at line 148 of file train.h.

template<class Arc, class ExpectationTable>
using fst::internal::StepwiseBaumWelchTrainer< Arc, ExpectationTable >::Weight = typename Arc::Weight

Definition at line 147 of file train.h.

Constructor & Destructor Documentation

template<class Arc, class ExpectationTable>
fst::internal::StepwiseBaumWelchTrainer< Arc, ExpectationTable >::StepwiseBaumWelchTrainer ( float  alpha = kAlpha,
int  batch_size = 0,
const CascadeOptions opts = CascadeOptions() 
)
inlineexplicit

Definition at line 151 of file train.h.

Member Function Documentation

template<class Arc, class ExpectationTable>
Weight fst::internal::StepwiseBaumWelchTrainer< Arc, ExpectationTable >::Batch ( FarReader< Arc > &  input,
FarReader< Arc > &  output,
MutableFst< Arc > *  model 
)
inline

Definition at line 158 of file train.h.

template<class Arc, class ExpectationTable>
void fst::internal::StepwiseBaumWelchTrainer< Arc, ExpectationTable >::Normalize ( MutableFst< Arc > *  model)
inline

Definition at line 192 of file train.h.

template<class Arc, class ExpectationTable>
Weight fst::internal::StepwiseBaumWelchTrainer< Arc, ExpectationTable >::Train ( FarReader< Arc > &  input,
FarReader< Arc > &  output,
MutableFst< Arc > *  model 
)
inline

Definition at line 181 of file train.h.


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