Menu

sphinx 3 sclite error

Help
2010-10-12
2012-09-22
  • haojin yang

    haojin yang - 2010-10-12

    i tried to integrate sclite to sphinx trainer, but got this error:
    "sclite failed with error code 256 at scripts_pl/decode/slave.pl line 205"

    i'using sctk2.4.0,
    can anybody help me to fix this problem? thanks in advance!

    Ian

     
  • Nickolay V. Shmyrev

    Hello

    It looks you are using rather old training scripts, new ones use word_align.pl
    instead of sclite. It shoudl work out-of-box without sctk. Please when you ask
    about problem learn to provide the versions of the software you are using.

    If you still want to run sclite, try to check the logdir for which command is
    executed, what is the output. Usually the issue is clearly described in error
    message in the logs. Try to run sclite yourself from command line, probably it
    will give you more ideas

    Sclite should operate on result/db_name.match file and create
    result/db_name.align file. Do you have match file? Did you decoder finished
    properly. Are there any issues in decoding log in logdir folder?

     
  • haojin yang

    haojin yang - 2010-10-13

    to nshmyrev:
    thanks for your reply, the sphinx trainer that i ' m using was downloaded from
    this page: http://www.speech.cs.cmu.edu/sphinx/tutorial.html#traincomponent
    i just followed this tutorials.
    if i use this line: $DEC_CFG_ALIGN = "builtin"; the WER and SER will be
    caculated successfully. i think the word_align.pl will be used, right? but if
    i set it tp
    $DEC_CFG_ALIGN = "/home/Ian/workspace/sctk2.4.0/bin/sclite";
    then the error message:"sclite failed with error code 256 at
    scripts_pl/decode/slave.pl line 205" occurred
    the decoding was finished and the .match file in the result folder was also
    created, however the .align file was not created.
    because sclite was not correctly worked. Is there big difference between
    sclite 1.4 and sclite 2.4.0, as i have seen in the tutorials the sclite 1.4
    was used at CMU. compatibility problem?

     
  • Nickolay V. Shmyrev

    the sphinx trainer that i ' m using was downloaded from this page: http://w
    ww.speech.cs.cmu.edu/sphinx/tutorial.html#traincomponent

    This one is outdated. Use http://cmusphinx.sourceforge.net/wiki/tutorialam

    . i think the word_align.pl will be used, right?

    Yes

    Is there big difference between sclite 1.4 and sclite 2.4.0, as i have seen
    in the tutorials the sclite 1.4 was used at CMU. compatibility problem?

    I don't think it matters. Probably you just specified the path incorrectly.
    Are you sure that binary exists in that path?

    Add print in decode script:

        open (OUT, "> $outfile") or die "Can't open $outfile for writing\n";
        my $cmdln = "\"$align\" " .
              "-i rm " .
              "-o sum pralign dtl stdout " .
              "-f 0 " .
              "-r \"$ref\" " .
              "-h \"$hyp\"";
        print ($cmdln);
    

    To print the command executed. Try to execute the command after that from the
    command line. You'll easily find the issue.

     
  • haojin yang

    haojin yang - 2010-10-13

    thanks a lot! i will try it.

     

Log in to post a comment.