[SRILM User List] Lattice-tool and	-word-posteriors-for-sentences
    Andreas Stolcke 
    stolcke at icsi.berkeley.edu
       
    Tue Oct  1 10:11:26 PDT 2013
    
    
  
On 10/1/2013 6:49 AM, André Mansikkaniemi wrote:
> Hi,
>
> Been trying to use the lattice-tool and the
> '-word-posteriors-for-sentences' option to calculate posterior
> probabilities for words in an ASR output hypothesis.
>
> So I have a lattice and hypothesis file to begin with, and run the
> following commands to generate the posterior probabilities.
>
> lattice-tool -read-htk -in-lattice test.lat -write-mesh test.mesh
> lattice-tool -read-mesh -in-lattice test.mesh
> -word-posteriors-for-sentences test.hyp > test.posteriors
Try
	lattice-tool -read-htk -in-lattice test.lat -word-posteriors-for-sentences test.hyp > test.posteriors
The -word-posteriors-for-sentences option triggers CN construction from the input lattice, and then aligns each line in test.hyp to that CN.
Andreas
  
    
    
More information about the SRILM-User
mailing list