UFAL-DSG/pykaldi

decoders fails in alex

Closed this issue · 2 comments

./applications/call_logs/2013-12-20-23-17-15.635138-CET-4f5fd09fa792b678/vad-2013-12-20-23-17-28.462396.wav
saved in work/pykaldi/vad-2013-12-20-23-17-28.462396.wav
transcription "chci jet"

ERROR (PyGmmLatgenWrapper:ProcessNonemitting():lattice-faster-decoder.cc:658) Error, no surviving tokens: frame is 83
2013-12-20-23-17-28.503487-CET  ASR-3      : EXCEPTION
    Uncaught exception in ASR process.
    Traceback (most recent call last):
      File "/ha/work/people/oplatek/alex-dsg/alex/components/hub/asr.py", line 221, in run
        self.read_audio_write_asr_hypotheses()
      File "/ha/work/people/oplatek/alex-dsg/alex/components/hub/asr.py", line 125, in read_audio_write_asr_hypotheses
        self.asr.rec_in(data_rec)
      File "/ha/work/people/oplatek/alex-dsg/alex/components/asr/kaldi.py", line 61, in rec_in
        dec_t = self.decoder.decode(max_frames=self.max_dec_frames)
      File "decoders.pyx", line 44, in pykaldi.decoders.PyGmmLatgenWrapper.decode (pykaldi/decoders.cpp:1361)
    RuntimeError: ERROR (PyGmmLatgenWrapper:ProcessNonemitting():lattice-faster-decoder.cc:658) Error, no surviving tokens: frame is 83

    [stack trace: ]
    kaldi::KaldiGetStackTrace()
    kaldi::KaldiErrorMessage::~KaldiErrorMessage()
    kaldi::LatticeFasterDecoder::ProcessNonemitting(int)
    kaldi::PykaldiLatticeFasterDecoder::Decode(kaldi::DecodableInterface*, unsigned long)
    kaldi::GmmLatgenWrapper::Decode(unsigned long)
    .
    .
    .
    python(PyRun_FileExFlags+0xe1) [0x4246a1]
    python(PyRun_SimpleFileExFlags+0x1ce) [0x42492e]
    python(Py_Main+0x536) [0x425cb6]
    /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed) [0x7fc571f0876d]
    python() [0x41bb31]




Process ASR-3:
Traceback (most recent call last):
  File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
    self.run()
  File "/ha/work/people/oplatek/alex-dsg/alex/components/hub/asr.py", line 221, in run
    self.read_audio_write_asr_hypotheses()
  File "/ha/work/people/oplatek/alex-dsg/alex/components/hub/asr.py", line 125, in read_audio_write_asr_hypotheses
    self.asr.rec_in(data_rec)
  File "/ha/work/people/oplatek/alex-dsg/alex/components/asr/kaldi.py", line 61, in rec_in
    dec_t = self.decoder.decode(max_frames=self.max_dec_frames)
  File "decoders.pyx", line 44, in pykaldi.decoders.PyGmmLatgenWrapper.decode (pykaldi/decoders.cpp:1361)
RuntimeError: ERROR (PyGmmLatgenWrapper:ProcessNonemitting():lattice-faster-decoder.cc:658) Error, no surviving tokens: frame is 83

[stack trace: ]
kaldi::KaldiGetStackTrace()
kaldi::KaldiErrorMessage::~KaldiErrorMessage()
kaldi::LatticeFasterDecoder::ProcessNonemitting(int)
kaldi::PykaldiLatticeFasterDecoder::Decode(kaldi::DecodableInterface*, unsigned long)
kaldi::GmmLatgenWrapper::Decode(unsigned long)
.
.
.
python(PyRun_FileExFlags+0xe1) [0x4246a1]
python(PyRun_SimpleFileExFlags+0x1ce) [0x42492e]
python(Py_Main+0x536) [0x425cb6]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed) [0x7fc571f0876d]
python() [0x41bb31]

If I run make pykaldi-latgen-faster from binutils for vad-2013-12-20-23-17-28.462396.wav.
It does not fail and decodes "CENTER" which is acoustically close.

It was problem fo Alex dialog system wrapper