BaumWelch  baumwelch-0.3.8
OpenGrm-BaumWelch library
Typedefs | Functions
fst::script Namespace Reference

Typedefs

using BaumWelchDecodeArgs = std::tuple< FarReaderClass &, FarReaderClass &, const FstClass &, FarWriterClass & >
 
using BaumWelchRandomizeArgs = std::tuple< MutableFstClass *, uint64_t >
 
using BaumWelchTrainArgs = std::tuple< FarReaderClass &, FarReaderClass &, MutableFstClass *, bool, const TrainOptions & >
 

Functions

template<class Arc >
void Decode (BaumWelchDecodeArgs *args)
 
void Decode (FarReaderClass &input, FarReaderClass &output, const FstClass &model, FarWriterClass &hypotext)
 
template<class Arc >
void Randomize (BaumWelchRandomizeArgs *args)
 
void Randomize (MutableFstClass *fst, uint64_t seed=std::random_device()())
 
template<class Arc >
void Train (BaumWelchTrainArgs *args)
 
void Train (FarReaderClass &input, FarReaderClass &output, MutableFstClass *model, bool normalize_ilabel=true, const TrainOptions &opts=TrainOptions())
 
 REGISTER_FST_OPERATION_3ARCS (Decode, BaumWelchDecodeArgs)
 
 REGISTER_FST_OPERATION_3ARCS (Randomize, BaumWelchRandomizeArgs)
 
 REGISTER_FST_OPERATION_3ARCS (Train, BaumWelchTrainArgs)
 

Typedef Documentation

using fst::script::BaumWelchDecodeArgs = typedef std::tuple<FarReaderClass &, FarReaderClass &, const FstClass &, FarWriterClass &>

Definition at line 30 of file decodescript.h.

using fst::script::BaumWelchRandomizeArgs = typedef std::tuple<MutableFstClass *, uint64_t>

Definition at line 29 of file randomizescript.h.

using fst::script::BaumWelchTrainArgs = typedef std::tuple<FarReaderClass &, FarReaderClass &, MutableFstClass *, bool, const TrainOptions &>

Definition at line 31 of file trainscript.h.

Function Documentation

template<class Arc >
void fst::script::Decode ( BaumWelchDecodeArgs args)

Definition at line 33 of file decodescript.h.

void fst::script::Decode ( FarReaderClass &  input,
FarReaderClass &  output,
const FstClass &  model,
FarWriterClass &  hypotext 
)

Definition at line 24 of file decodescript.cc.

template<class Arc >
void fst::script::Randomize ( BaumWelchRandomizeArgs args)

Definition at line 32 of file randomizescript.h.

void fst::script::Randomize ( MutableFstClass *  fst,
uint64_t  seed = std::random_device()() 
)

Definition at line 25 of file randomizescript.cc.

fst::script::REGISTER_FST_OPERATION_3ARCS ( Randomize  ,
BaumWelchRandomizeArgs   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( Decode  ,
BaumWelchDecodeArgs   
)
fst::script::REGISTER_FST_OPERATION_3ARCS ( Train  ,
BaumWelchTrainArgs   
)
template<class Arc >
void fst::script::Train ( BaumWelchTrainArgs args)

Definition at line 34 of file trainscript.h.

void fst::script::Train ( FarReaderClass &  input,
FarReaderClass &  output,
MutableFstClass *  model,
bool  normalize_ilabel = true,
const TrainOptions opts = TrainOptions() 
)

Definition at line 26 of file trainscript.cc.