Menu

Baum Welch assertion failed (key != NULL)

Help
2009-06-10
2012-09-22
  • Peter Gruenbaum

    Peter Gruenbaum - 2009-06-10

    As I mentioned in a previous post, I am trying to create a sample speech recognition app using some uncommon non-English languages, and I would like to use SphinxTrain. I am willing to write up instructions on how to do this if I can get it working. Currently the information is distributed among three documents.

    When I run RunAll.pl, an error is thrown during the Baum Welch portion. The end of the span.1.1-1.bw.log file is as follows:

    INFO: c:\sphinx4\sphinxtrain\src\programs\bw\main.c(365): Will reestimate means.
    INFO: c:\sphinx4\sphinxtrain\src\programs\bw\main.c(367): Will reestimate variances.
    INFO: c:\sphinx4\sphinxtrain\src\programs\bw\main.c(369): WIll NOT optionally delete silence in Baum Welch or Viterbi.
    INFO: c:\sphinx4\sphinxtrain\src\programs\bw\main.c(377): Will reestimate transition matrices
    INFO: c:\sphinx4\sphinxtrain\src\programs\bw\main.c(390): Reading main lexicon: C:/sphinx4/SphinxTrain/span/etc/span.dic
    Assertion failed: key != NULL, file c:\sphinx4\sphinxtrain\src\libs\libcommon\hash.c, line 254

    This application has requested the Runtime to terminate it in an unusual way.
    Please contact the application's support team for more information.
    Wed Jun 10 12:57:58 2009

    Can anyone suggest what might be going wrong? I am using ActivePerl on Windows XP.

    Thanks,
    Peter

     
    • Nickolay V. Shmyrev

      Could you please give a link to your database so I could reproduce your problem.

       
      • Adelio

        Adelio - 2009-06-11

        Could you check your dictionary which has the blank in the last line?
        I met the same error when my dictionary has the blank in the last line.

         
    • Peter Gruenbaum

      Peter Gruenbaum - 2009-06-11

      Hey, that was it! I got rid of the blank line and it went through. Apparently you need to have a return on each line in the file, but no blank lines at the end. 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.