Menu

word_align.pl

Help
2015-03-10
2020-10-06
  • raspberry_dev

    raspberry_dev - 2015-03-10

    how to use word_align.pl ?
    I'am running
    ./word_align.pl refrence_file hypothesis_file
    Also tried
    ./word_align.pl calculate_wer refrence_file hypothesis_file

    None of the above worked . Can anyone help me the correct usage of word_align.pl

     
    • bic-user

      bic-user - 2015-03-10

      "refrence_file" - is a transcription file. Like in tutorial: http://www.speech.cs.cmu.edu/cmusphinx/moindocs/arctic20.transcription

      "hypothesis_file" - is a file with recognition results one per line. It is generated by pocketsphinx_batch, by specifying "-hyp path/to/file"

      Having this two text files you can calculate WER

       
  • raspberry_dev

    raspberry_dev - 2015-03-11

    I'am not confused about the files to be mentioned.
    I want to know the usage of word_align.pl
    The following doesnt work

    ./word_align.pl adaptation-test.transcription adapation-test.hyp

     
    • bic-user

      bic-user - 2015-03-11

      Please share files you trying. All three of them. And the output of the command you have on your side.

       
  • raspberry_dev

    raspberry_dev - 2015-03-11

    Attached are the files .

     
    • bic-user

      bic-user - 2015-03-11

      This align script is a bit choosy. You have bunch of empty lines at the end of adaptation-test.transcription. Remove them and it will be just fine. I got this on your files:

      TOTAL Words: 33 Correct: 30 Errors: 4
      TOTAL Percent correct = 90.91% Error = 12.12% Accuracy = 87.88%
      TOTAL Insertions: 1 Deletions: 1 Substitutions: 2
      
       
      • ijazulhassan

        ijazulhassan - 2020-10-06

        kinly plz past the exact script you run in your cmd for word_align.pl I'm also facing problem in decoding
        thanks,

         
  • raspberry_dev

    raspberry_dev - 2015-03-12

    oh now i get it .....Thanks for your help

     

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.