Menu

Decoding fails (Can't open file: result/<db_name>.match)

Help
2016-09-02
2018-10-22
  • Felix Hennig

    Felix Hennig - 2016-09-02

    Hey,
    Decoding fails, either at the end of "sphinxtrain run" but also with "sphinxtrain -s decode run"
    Console output:

    Sphinxtrain path: /informatik2/nats/projects/spokenWikipedia/acoustic_model_db_files/sphinxtrain_dir/lib/sphinxtrain
    Sphinxtrain binaries path: /informatik2/nats/projects/spokenWikipedia/acoustic_model_db_files/sphinxtrain_dir/libexec/sphinxtrain
    MODULE: DECODE Decoding using models previously trained
    Aligning results to find error rate
    Can't open file /informatik2/nats/projects/spokenWikipedia/acoustic_model2/result/wiki_de_caps.match

    It can't read this file because the result directory does not exist. I don't think this is an error though, because here it says that this folder will be created after decoding. What's the problem then?

    Also I'd like to know how I can disable the decoding stage in a normal run.

    Cheers,
    Felix

     
    • Nickolay V. Shmyrev

      You need to check logs in logdir folder. You need to provide logs if you need further help.

       
  • Felix Hennig

    Felix Hennig - 2016-09-02

    The logdir didn't contain a "decode" directory, because the psdecode.pl file never got executed.
    There is a qmanager/decode.err file:

    Configuration (e.g. etc/sphinx_train.cfg) not defined
    Compilation failed in require at /informatik2/nats/projects/spokenWikipedia/acoustic_model2/sphinxtrain_dir/lib/sphinxtrain/scripts/decode/psdecode.pl line 53.
    BEGIN failed--compilation aborted at /informatik2/nats/projects/spokenWikipedia/acoustic_model2/sphinxtrain_dir/lib/sphinxtrain/scripts/decode/psdecode.pl line 53.

    The configuration file does exist though and is syntactically valid.

    And if we execute the psdecode file directly, it works.

     

    Last edit: Felix Hennig 2016-09-02
    • Nickolay V. Shmyrev

      Try to add in psdecode.pl and slave.pl in decode:

      use strict;
      

      above

      use File::Path;
      use File::Copy;
      use File::Basename;
      use File::Spec::Functions;
      

      like in other scripts.

       
  • Anjul Sharma

    Anjul Sharma - 2018-10-22

    Hi Nickolay,

    use File::Path;
    use File::Copy;
    use File::Basename;
    use File::Spec::Functions;

    already in files in decode but still not running psdecode.pl, same error throws:
    psdecode.pl
    Configuration (e.g. ./etc/sphinx_train.cfg) not defined
    Compilation failed in require at ./psdecode.pl line 53.
    BEGIN failed--compilation aborted at ./psdecode.pl line 53.

    In log file no error there, stuck after scanning files.

     

    Last edit: Anjul Sharma 2018-10-22
    • Nickolay V. Shmyrev

      Your decoding crashed with OOM error or with some other error it seems. You can debug this issue running pocketsphinx directly from command line.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.