Public Member Functions | Public Attributes

fst::ReplaceFstOptions< A, T > Struct Template Reference

#include <fst/replace.h>

Inherits fst::CacheOptions.

Collaboration diagram for fst::ReplaceFstOptions< A, T >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ReplaceFstOptions (const CacheOptions &opts, int64 r)
 ReplaceFstOptions (int64 r)
 ReplaceFstOptions (int64 r, bool epsilon_replace_arc)
 ReplaceFstOptions ()

Public Attributes

int64 root
 root rule for expansion
bool epsilon_on_replace
bool take_ownership
 take ownership of input Fst(s)
T * state_table

Detailed Description

template<class A, class T = DefaultReplaceStateTable<A>>
struct fst::ReplaceFstOptions< A, T >

REPLACE FST CLASS By default ReplaceFst will copy the input label of the 'replace arc'. For acceptors we do not want this behaviour. Instead we need to create an epsilon arc when recursing into the appropriate Fst. The 'epsilon_on_replace' option can be used to toggle this behaviour.

Definition at line 267 of file replace.h.


Constructor & Destructor Documentation

template<class A, class T = DefaultReplaceStateTable<A>>
fst::ReplaceFstOptions< A, T >::ReplaceFstOptions ( const CacheOptions opts,
int64  r 
) [inline]

Definition at line 273 of file replace.h.

template<class A, class T = DefaultReplaceStateTable<A>>
fst::ReplaceFstOptions< A, T >::ReplaceFstOptions ( int64  r  )  [inline, explicit]

Definition at line 279 of file replace.h.

template<class A, class T = DefaultReplaceStateTable<A>>
fst::ReplaceFstOptions< A, T >::ReplaceFstOptions ( int64  r,
bool  epsilon_replace_arc 
) [inline]

Definition at line 284 of file replace.h.

template<class A, class T = DefaultReplaceStateTable<A>>
fst::ReplaceFstOptions< A, T >::ReplaceFstOptions (  )  [inline]

Definition at line 289 of file replace.h.


Member Data Documentation

template<class A, class T = DefaultReplaceStateTable<A>>
bool fst::ReplaceFstOptions< A, T >::epsilon_on_replace

Definition at line 269 of file replace.h.

template<class A, class T = DefaultReplaceStateTable<A>>
int64 fst::ReplaceFstOptions< A, T >::root

root rule for expansion

Definition at line 268 of file replace.h.

template<class A, class T = DefaultReplaceStateTable<A>>
T* fst::ReplaceFstOptions< A, T >::state_table

Definition at line 271 of file replace.h.

template<class A, class T = DefaultReplaceStateTable<A>>
bool fst::ReplaceFstOptions< A, T >::take_ownership

take ownership of input Fst(s)

Definition at line 270 of file replace.h.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines