Decoders that extract lattice

125 views
Skip to first unread message

Denis

unread,
Jan 8, 2018, 12:09:57 AM1/8/18
to kaldi-help
Decoding works great, with online2-wav-nnet3-latgen-faster.  However, I assumed there would be a way to extract the lattice with a flag.  Based on the -help options, I don't see one (and increasing verbosity was not helpful).  Is this still the case?

"Currently, the only decoder that generates lattices is the class 
LatticeSimpleDecoder, defined in decoder/lattice-simple-decoder.h, and invoked by gmm-latgen-simple.cc."

If not, which decoders (ideally with one of the online decoders) provide a simple way to get the lattice (alternative predictions and their confidences)?  

Daniel Povey

unread,
Jan 8, 2018, 12:23:01 AM1/8/18
to kaldi-help
It does generate a lattice, that's actually the only form of machine-readable output it produces.  (the words on the stderr are for humans to read).


--
Go to http://kaldi-asr.org/forums.html find out how to join
---
You received this message because you are subscribed to the Google Groups "kaldi-help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kaldi-help+unsubscribe@googlegroups.com.
To post to this group, send email to kaldi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kaldi-help/15874737-305d-4359-881a-52c78c7c2919%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Denis

unread,
Jan 8, 2018, 12:41:09 AM1/8/18
to kaldi-help
That's a good answer to hear! Sorry if it's a dumb question, I expected somebody from the user base, not the author himself to answer it.  I might have a poor configuration, but I can't see any output besides the words and several entries in the log about aggregate statistics.  How do I actually see/save the lattice?  

Here's my command; (all the referenced files are standard for the ASpiRE model).

online2-wav-nnet3-latgen-faster \
    --online=false \
    --do-endpointing=false \
      --frame-subsampling-factor=3 \
      --config=exp/tdnn_7b_chain_online/conf/online.conf \
      --max-active=7000 \
      --beam=15.0 \
      --lattice-beam=6.0 \
      --acoustic-scale=1.0 \
      --word-symbol-table=exp/tdnn_7b_chain_online/graph_pp/words.txt \
      exp/tdnn_7b_chain_online/final.mdl \
      exp/tdnn_7b_chain_online/graph_pp/HCLG.fst \
      'ark:echo utterance-id1 utterance-id1|' \
      'scp:echo utterance-id1 $myFileNameHere|' \
      'ark:/dev/null'


On Monday, January 8, 2018 at 12:23:01 AM UTC-5, Dan Povey wrote:
It does generate a lattice, that's actually the only form of machine-readable output it produces.  (the words on the stderr are for humans to read).

On Sun, Jan 7, 2018 at 9:09 PM, Denis <dpe...@cs.umd.edu> wrote:
Decoding works great, with online2-wav-nnet3-latgen-faster.  However, I assumed there would be a way to extract the lattice with a flag.  Based on the -help options, I don't see one (and increasing verbosity was not helpful).  Is this still the case?

"Currently, the only decoder that generates lattices is the class 
LatticeSimpleDecoder, defined in decoder/lattice-simple-decoder.h, and invoked by gmm-latgen-simple.cc."

If not, which decoders (ideally with one of the online decoders) provide a simple way to get the lattice (alternative predictions and their confidences)?  

--
Go to http://kaldi-asr.org/forums.html find out how to join
---
You received this message because you are subscribed to the Google Groups "kaldi-help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kaldi-help+...@googlegroups.com.

Denis

unread,
Jan 8, 2018, 12:48:48 AM1/8/18
to kaldi-help
I guess the "it" is ambiguous in the response.  I'm most interested in online2-wav-nnet3-latgen-faster, or any of the online ones generating a lattice.  I was asking if it was the case that "the only decoder that generates lattices is the class LatticeSimpleDecoder", or if perhaps this been expanded.  

Daniel Povey

unread,
Jan 8, 2018, 1:51:08 AM1/8/18
to kaldi-help
That is out of date; I'll fix it.  Also it's referring to code-level decoders.  Run the program without args to see usage.

To unsubscribe from this group and stop receiving emails from it, send an email to kaldi-help+unsubscribe@googlegroups.com.

To post to this group, send email to kaldi...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages