1 #ifndef LMERT_TUNESET_HPP 2 #define LMERT_TUNESET_HPP 28 !ir->done(); ir->next() ) {
30 VectorFstPtr ifst ( VectorFstRead<Arc> ( input ( ir->get() ) ) );
32 cachedLats.push_back ( ifst );
34 sidMax = cachedLats.size();
35 FORCELINFO (
"Loaded tuneset lattices: " << sidMax );
39 if ( sid > cachedLats.size() ) {
40 LERROR (
"Requested lattice not loaded" << sid );
41 exit ( EXIT_FAILURE );
43 return &* ( cachedLats[sid] );
50 for (
int i = 0; i <
sidMax; ++i ) {
52 FstGetBestHypothesis<Arc, Wid> ( *cachedLats[i], h);
54 h.erase ( h.begin() );
72 for (
int i = 0; i <
sidMax; ++i ) {
74 FstGetBestHypothesis<Arc, Wid> ( *cachedLats[i], h);
77 h.erase ( h.begin() );
class that expands a wildcard into its actual value. This is useful e.g. for filenames ranging severa...
T get(const std::string &key) const
Returns parsed value associated to key.
boost::scoped_ptr< NumberRangeInterface< unsigned > > IntRangePtr
Implements Tropical Sparse tuple weight semiring, extending from openfst SparsePowerWeight class...
Utilites to extract vocabulary, pseudo-determinize lattices and build substring transducers.
const std::string kRangeOne