I try to explain my problem.
I need to test my AM, check it's quality. How could I do it?
I suppose, that if I get phoneme string (instead of words), I could get phone accuracy and correct.
If I use very simple unigram LM and 3gram LM, phoneme string will be different? How can I avoid it?
In other words, is it possible in Kaldi to get phone error rate (PER)?
That's the way I get phoneme string:
lattice-to-post --acoustic-scale=0.1 --lm-scale=0.1 ark:"gunzip -c $lattice|" ark:- | post-to-phone-post $model ark:- ark,t:$
lattice.post.int
Is it write?