[SRILM User List] lattice-tool with concatenate option

Andreas Stolcke stolcke at icsi.berkeley.edu
Tue May 10 10:17:17 PDT 2011


Aarthi wrote:
> Hello Andreas
>
> I have a set of lattices that I would like to concatenate in a 
> particular order: A1.lat, A2.lat, A3.lat are to be concatenated in 
> that order to form A.lat
>
> I was able to concatenate A1.lat and A2.lat to form a lattice B.lat 
> using this:
> lattice-tool -in-lattice A1.lat -in-lattice2 A2.lat -operation 
> concatenate -out-lattice B.lat
>
> And then do:
> lattice-tool -in-lattice B.lat -in-lattice2 A3.lat -operation 
> concatenate -out-lattice A.lat
>
> Is it possible to make this simpler?
No.  You're doing the right thing.   If you are comfortable with C++ you 
can modify the concatenate function to accept a list of lattices.

Andreas

> Thanks,
> Aarthi
> ------------------------------------------------------------------------
>
> _______________________________________________
> SRILM-User site list
> SRILM-User at speech.sri.com
> http://www.speech.sri.com/mailman/listinfo/srilm-user




More information about the SRILM-User mailing list