Phonetisaurus  1.0
FST-based Grapheme-to-Phoneme conversion
Public Member Functions | Public Attributes | List of all members
fst::M2MFstAligner Class Reference

#include <M2MFstAligner.h>

Public Member Functions

 M2MFstAligner ()
 
 M2MFstAligner (bool seq1_del, bool seq2_del, unsigned int seq1_max, unsigned int seq2_max, string seq1_sep, string seq2_sep, string s1s2_sep, string eps, string _skip, bool _penalize, bool penalize_em, bool restrict)
 
 M2MFstAligner (string model_file, bool penalize, bool penalize_em, bool restrict)
 
void write_model (string model_name)
 
void Sequences2FST (VectorFst< LogArc > *fst, vector< string > *seq1, vector< string > *seq2)
 
void Sequences2FSTNoInit (VectorFst< LogArc > *fst, vector< string > *seq1, vector< string > *seq2)
 
void entry2alignfst (vector< string > seq1, vector< string > seq2)
 
void entry2alignfstnoinit (vector< string > seq1, vector< string > seq2, int nbest, string lattice="")
 
void _conditional_max (bool x_given_y)
 
void expectation ()
 
float maximization (bool lastiter)
 
void _compute_penalties (LogArc::Label label, int lhs, int rhs, bool lhsE, bool rhsE)
 

Public Attributes

bool seq1_del
 
bool seq2_del
 
unsigned int seq1_max
 
unsigned int seq2_max
 
string seq1_sep
 
string seq2_sep
 
string s1s2_sep
 
string eps
 
string skip
 
bool penalize
 
bool penalize_em
 
bool restrict
 
set< int > skipSeqs
 
vector< VectorFst< LogArc > > fsas
 
SymbolTable * isyms
 
map< LogArc::Label, LogWeight > alignment_model
 
map< LogArc::Label, LogWeight > prev_alignment_model
 
LabelData penalties
 
LogWeight total
 
LogWeight prevTotal
 

Detailed Description

Definition at line 40 of file M2MFstAligner.h.

Constructor & Destructor Documentation

M2MFstAligner::M2MFstAligner ( )

Definition at line 35 of file M2MFstAligner.cc.

M2MFstAligner::M2MFstAligner ( bool  seq1_del,
bool  seq2_del,
unsigned int  seq1_max,
unsigned int  seq2_max,
string  seq1_sep,
string  seq2_sep,
string  s1s2_sep,
string  eps,
string  _skip,
bool  _penalize,
bool  penalize_em,
bool  restrict 
)

Definition at line 39 of file M2MFstAligner.cc.

M2MFstAligner::M2MFstAligner ( string  model_file,
bool  penalize,
bool  penalize_em,
bool  restrict 
)

Definition at line 74 of file M2MFstAligner.cc.

Member Function Documentation

void M2MFstAligner::_compute_penalties ( LogArc::Label  label,
int  lhs,
int  rhs,
bool  lhsE,
bool  rhsE 
)

Definition at line 550 of file M2MFstAligner.cc.

void M2MFstAligner::_conditional_max ( bool  x_given_y)

Definition at line 173 of file M2MFstAligner.cc.

void M2MFstAligner::entry2alignfst ( vector< string >  seq1,
vector< string >  seq2 
)

Definition at line 532 of file M2MFstAligner.cc.

void M2MFstAligner::entry2alignfstnoinit ( vector< string >  seq1,
vector< string >  seq2,
int  nbest,
string  lattice = "" 
)

Definition at line 539 of file M2MFstAligner.cc.

void M2MFstAligner::expectation ( )

Definition at line 134 of file M2MFstAligner.cc.

float M2MFstAligner::maximization ( bool  lastiter)

Definition at line 268 of file M2MFstAligner.cc.

void M2MFstAligner::Sequences2FST ( VectorFst< LogArc > *  fst,
vector< string > *  seq1,
vector< string > *  seq2 
)

Definition at line 325 of file M2MFstAligner.cc.

void M2MFstAligner::Sequences2FSTNoInit ( VectorFst< LogArc > *  fst,
vector< string > *  seq1,
vector< string > *  seq2 
)

Definition at line 460 of file M2MFstAligner.cc.

void M2MFstAligner::write_model ( string  model_name)

Definition at line 115 of file M2MFstAligner.cc.

Member Data Documentation

map<LogArc::Label, LogWeight> fst::M2MFstAligner::alignment_model

Definition at line 86 of file M2MFstAligner.h.

string fst::M2MFstAligner::eps

Definition at line 69 of file M2MFstAligner.h.

vector<VectorFst<LogArc> > fst::M2MFstAligner::fsas

Definition at line 79 of file M2MFstAligner.h.

SymbolTable* fst::M2MFstAligner::isyms

Definition at line 85 of file M2MFstAligner.h.

bool fst::M2MFstAligner::penalize

Definition at line 71 of file M2MFstAligner.h.

bool fst::M2MFstAligner::penalize_em

Definition at line 72 of file M2MFstAligner.h.

LabelData fst::M2MFstAligner::penalties

Definition at line 88 of file M2MFstAligner.h.

map<LogArc::Label, LogWeight> fst::M2MFstAligner::prev_alignment_model

Definition at line 87 of file M2MFstAligner.h.

LogWeight fst::M2MFstAligner::prevTotal

Definition at line 90 of file M2MFstAligner.h.

bool fst::M2MFstAligner::restrict

Definition at line 73 of file M2MFstAligner.h.

string fst::M2MFstAligner::s1s2_sep

Definition at line 68 of file M2MFstAligner.h.

bool fst::M2MFstAligner::seq1_del

Definition at line 62 of file M2MFstAligner.h.

unsigned int fst::M2MFstAligner::seq1_max

Definition at line 64 of file M2MFstAligner.h.

string fst::M2MFstAligner::seq1_sep

Definition at line 66 of file M2MFstAligner.h.

bool fst::M2MFstAligner::seq2_del

Definition at line 63 of file M2MFstAligner.h.

unsigned int fst::M2MFstAligner::seq2_max

Definition at line 65 of file M2MFstAligner.h.

string fst::M2MFstAligner::seq2_sep

Definition at line 67 of file M2MFstAligner.h.

string fst::M2MFstAligner::skip

Definition at line 70 of file M2MFstAligner.h.

set<int> fst::M2MFstAligner::skipSeqs

Definition at line 76 of file M2MFstAligner.h.

LogWeight fst::M2MFstAligner::total

Definition at line 89 of file M2MFstAligner.h.


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