Menu

When I used the script word-align.pl from Sphinxtrain, it always reports "word_align.pl:未找到命令。What should I do?

Help
yanrui
2015-03-21
2015-06-08
  • yanrui

    yanrui - 2015-03-21

    pocketsphinx_batch \
    -adcin yes \
    -cepdir wav \
    -cepext .wav \
    -ctl adaptation-test.fileids \
    -lm <your.lm> \
    -dict <your.dic, for="" example="" arctic.dic=""> \
    -hmm <your_new_adapted_model, for="" example="" hub4wsj_sc_8kadapt=""> \
    -hyp adapation-test.hyp</your_new_adapted_model,></your.dic,></your.lm>

    word_align.pl adaptation-test.transcription adapation-test.hyp
    I am decoding 16kHz files!

    When I used the script word-align.pl from Sphinxtrain, it always reports "word_align.pl:未找到命令。What should I do?

     
    • Nickolay V. Shmyrev

      Commands you enter in command line are searched in PATH. They also must have executable flag. If you want to run a script from current folder you can start it with ./:

       ./word_align.pl ref hyp
      

      If the script is not executable you can make it executable with chmod or run it with perl:

       perl ./word_align.pl ref hyp
      

      You can learn a lot about Unix command line from the following tutorial: http://tldp.org/LDP/Bash-Beginners-Guide/html/index.html

       
      • Satinderpal Singh

        Hi
        I also face a similar type of problem, but in my case the error is:

        ./word_align.pl: No such file or directory

        How do i get this file?

         
        • bic-user

          bic-user - 2015-06-08

          check pocketsphinx/test/word_align.pl

           
          • Satinderpal Singh

            Thanks, it works!!

             
  • yanrui

    yanrui - 2015-03-22

    Ok! Thanks!

     

Log in to post a comment.