Cambridge SMT System
|
This class creates the Union of an arbitrarily large number of fsts. This implementation was suggested by Cyril (13-08-2009), as a more efficient alternative to using consecutive Union() over two VectorFsts. The reason being that this generates internally a list of ReplaceFsts. More...
#include <fstutils.multiunion.hpp>
Public Member Functions | |
MultiUnionRational () | |
Empty Constructor. More... | |
void | Add (boost::shared_ptr< Fst< Arc > const > fst) |
Adds an fst to the list. More... | |
void | Add (Fst< Arc > const *fst) |
Also adds an fst, but takes a pointer as input. Note that we are using internally a list of shared_ptr that take ownership of these pointers. More... | |
VectorFst< Arc > * | operator() () |
This class creates the Union of an arbitrarily large number of fsts. This implementation was suggested by Cyril (13-08-2009), as a more efficient alternative to using consecutive Union() over two VectorFsts. The reason being that this generates internally a list of ReplaceFsts.
Definition at line 32 of file fstutils.multiunion.hpp.
|
inline |
Empty Constructor.
Definition at line 41 of file fstutils.multiunion.hpp.
|
inline |
Adds an fst to the list.
fst | Pointer to another fst to be unioned with previously stored ones. |
Definition at line 47 of file fstutils.multiunion.hpp.
|
inline |
Also adds an fst, but takes a pointer as input. Note that we are using internally a list of shared_ptr that take ownership of these pointers.
Definition at line 52 of file fstutils.multiunion.hpp.
|
inline |
Definition at line 60 of file fstutils.multiunion.hpp.