Edinburgh Speech Tools  2.1-release
EST_WFST.h File Reference
#include "EST_simplestats.h"
#include "EST_rw_status.h"
#include "EST_Option.h"
#include "EST_TList.h"
#include "EST_TVector.h"
#include "EST_THash.h"
#include "siod.h"
Include dependency graph for EST_WFST.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  EST_WFST_Transition
 an internal class for EST_WFST for representing transitions in an WFST More...
 
class  EST_WFST_State
 an internal class for EST_WFST used to represent a state in a WFST More...
 
class  EST_WFST_MultiState
 an internal class to EST_WFST used in holding multi-states when determinizing and find the intersections of other WFSTs. More...
 
class  EST_WFST
 a call representing a weighted finite-state transducer More...
 

Macros

#define wfst_error_msg(WMESS)   (std::cerr << WMESS << std::endl,siod_error())
 
#define WFST_ERROR_STATE   -1
 
#define WFST_FINAL   0
 
#define WFST_NONFINAL   1
 
#define WFST_ERROR   2
 
#define WFST_LICENCE   3
 

Typedefs

typedef EST_TList< EST_WFST_Transition * > wfst_translist
 
typedef EST_TVector< EST_WFST_State * > wfst_state_vector
 
typedef EST_TStringHash< intEST_WFST_MultiStateIndex
 
typedef EST_TList< EST_WFSTwfst_list
 

Enumerations

enum  wfst_state_type { wfst_final, wfst_nonfinal, wfst_error, wfst_licence }
 
enum  wfst_mstate_type { wfst_ms_set, wfst_ms_list }
 

Functions

int multistate_index (EST_WFST_MultiStateIndex &i, EST_WFST_MultiState *ms)
 
void minimize (EST_WFST &a, EST_WFST &b)
 
void determinize (EST_WFST &a, EST_WFST &b)
 
void concat (EST_WFST &a, EST_WFST &b, EST_WFST &c)
 
void compose (EST_WFST &a, EST_WFST &b, EST_WFST &c)
 
void intersect (wfst_list &wl, EST_WFST &wfst)
 
void complement (EST_WFST &a, EST_WFST &b)
 
void difference (EST_WFST &a, EST_WFST &b, EST_WFST &c)
 
void concatenate (EST_WFST &a, EST_WFST &b, EST_WFST &c)
 
void kkcompile (LISP ruleset, EST_WFST &all_wfst)
 
void ltscompile (LISP lts_rules, EST_WFST &all_wfst)
 
void rgcompile (LISP rg, EST_WFST &all_wfst)
 
void tlcompile (LISP rg, EST_WFST &all_wfst)
 
int transduce (const EST_WFST &wfst, const EST_StrList &in, EST_StrList &out)
 
int transduce (const EST_WFST &wfst, const EST_IList &in, EST_IList &out)
 
int recognize (const EST_WFST &wfst, const EST_StrList &in, int quiet)
 
int recognize (const EST_WFST &wfst, const EST_IList &in, const EST_IList &out, int quite)
 
int recognize_for_perplexity (const EST_WFST &wfst, const EST_StrList &in, int quiet, float &count, float &sumlogp)
 
int recognize_for_perplexity (const EST_WFST &wfst, const EST_IList &in, const EST_IList &out, int quiet, float &count, float &sumlogp)
 

Macro Definition Documentation

#define wfst_error_msg (   WMESS)    (std::cerr << WMESS << std::endl,siod_error())

Definition at line 50 of file EST_WFST.h.

#define WFST_ERROR_STATE   -1

Definition at line 52 of file EST_WFST.h.

#define WFST_FINAL   0

I'd like to use the enums but I need to binary read/write them I don't believe that's portable so we need to have ints for these

Definition at line 88 of file EST_WFST.h.

#define WFST_NONFINAL   1

Definition at line 89 of file EST_WFST.h.

#define WFST_ERROR   2

Definition at line 90 of file EST_WFST.h.

#define WFST_LICENCE   3

Definition at line 91 of file EST_WFST.h.

Typedef Documentation

Definition at line 83 of file EST_WFST.h.

Definition at line 121 of file EST_WFST.h.

Definition at line 123 of file EST_WFST.h.

Definition at line 371 of file EST_WFST.h.

Enumeration Type Documentation

Enumerator
wfst_final 
wfst_nonfinal 
wfst_error 
wfst_licence 

Definition at line 85 of file EST_WFST.h.

Enumerator
wfst_ms_set 
wfst_ms_list 

Definition at line 124 of file EST_WFST.h.

Function Documentation

int multistate_index ( EST_WFST_MultiStateIndex i,
EST_WFST_MultiState ms 
)
void minimize ( EST_WFST a,
EST_WFST b 
)
void determinize ( EST_WFST a,
EST_WFST b 
)
void concat ( EST_WFST a,
EST_WFST b,
EST_WFST c 
)
void compose ( EST_WFST a,
EST_WFST b,
EST_WFST c 
)
void intersect ( wfst_list wl,
EST_WFST wfst 
)

Definition at line 370 of file kkcompile.cc.

void complement ( EST_WFST a,
EST_WFST b 
)
void difference ( EST_WFST a,
EST_WFST b,
EST_WFST c 
)
void concatenate ( EST_WFST a,
EST_WFST b,
EST_WFST c 
)
void kkcompile ( LISP  ruleset,
EST_WFST all_wfst 
)

Definition at line 72 of file kkcompile.cc.

void ltscompile ( LISP  lts_rules,
EST_WFST all_wfst 
)

Definition at line 63 of file ltscompile.cc.

void rgcompile ( LISP  rg,
EST_WFST all_wfst 
)

Definition at line 58 of file rgcompile.cc.

void tlcompile ( LISP  rg,
EST_WFST all_wfst 
)

Definition at line 57 of file tlcompile.cc.

int transduce ( const EST_WFST wfst,
const EST_StrList in,
EST_StrList out 
)

Definition at line 77 of file wfst_transduce.cc.

int transduce ( const EST_WFST wfst,
const EST_IList in,
EST_IList out 
)

Definition at line 95 of file wfst_transduce.cc.

int recognize ( const EST_WFST wfst,
const EST_StrList in,
int  quiet 
)

Definition at line 182 of file wfst_transduce.cc.

int recognize ( const EST_WFST wfst,
const EST_IList in,
const EST_IList out,
int  quite 
)

Definition at line 211 of file wfst_transduce.cc.

int recognize_for_perplexity ( const EST_WFST wfst,
const EST_StrList in,
int  quiet,
float &  count,
float &  sumlogp 
)

Definition at line 246 of file wfst_transduce.cc.

int recognize_for_perplexity ( const EST_WFST wfst,
const EST_IList in,
const EST_IList out,
int  quiet,
float &  count,
float &  sumlogp 
)

Definition at line 279 of file wfst_transduce.cc.