prosodylab / Prosodylab-Aligner

Python interface for forced audio alignment using HTK and SoX
http://prosodylab.org/tools/aligner/
MIT License
331 stars 77 forks source link

LoadHTKList: Label Name Expected #15

Closed jamiebullock closed 10 years ago

jamiebullock commented 10 years ago

Hi,

I have now added additional words to the dictionary.txt.

The script is now failing with the above error. The full output is:

Initializing...  ERROR [+6550]  LoadHTKList: Label Name Expected
 FATAL ERROR - Terminating program HLEd
Command '['HLEd', '-l', '/var/folders/qw/rjwzgfgd19z73sc1qs973r200000gn/T/tmp_g_eNe/LAB', '-d', '/var/folders/qw/rjwzgfgd19z73sc1qs973r200000gn/T/tmp_g_eNe/taskdict', '-i', '/var/folders/qw/rjwzgfgd19z73sc1qs973r200000gn/T/tmp_g_eNe/phones.mlf', '/var/folders/qw/rjwzgfgd19z73sc1qs973r200000gn/T/tmp_g_eNe/temp', '/var/folders/qw/rjwzgfgd19z73sc1qs973r200000gn/T/tmp_g_eNe/words.mlf']' returned non-zero exit status 150

Any ideas what might be causing the problem?

kylebgorman commented 10 years ago

Classic example of HTK's useless error messages. I've never seen that one before. If you send me a reproducible example I can take it from there (kylebgorman@gmail.com will do)...I usually just look at the temporary files to see if they're sane. There's an global variable DEBUG = False at the top of the script: if you turn that to True, it will run and keep all the temporary files around so you can interrogate them.

kylebgorman commented 10 years ago

I did some research on this: one reason this error arises is that HTK place restrictions on where numbers can occur in label files (as well as in the dictionary). For instance, no phone can begin with a digit, and I don’t know if dictionary words can either. Does this apply at all?

http://www.voxforge.org/home/dev/acousticmodels/linux/adapt/htkjulius/adapt/step-4/comments/error-6550--loadhtklist-label-name-expected http://www.ling.ohio-state.edu/~bromberg/htk_problems.html

On Feb 20, 2014, at 11:40 AM, Jamie Bullock notifications@github.com wrote:

Hi,

I have now added additional words to the dictionary.txt.

The script is now failing with the above error. The full output is:

Initializing... ERROR [+6550] LoadHTKList: Label Name Expected FATAL ERROR - Terminating program HLEd Command '['HLEd', '-l', '/var/folders/qw/rjwzgfgd19z73sc1qs973r200000gn/T/tmp_g_eNe/LAB', '-d', '/var/folders/qw/rjwzgfgd19z73sc1qs973r200000gn/T/tmp_g_eNe/taskdict', '-i', '/var/folders/qw/rjwzgfgd19z73sc1qs973r200000gn/T/tmp_g_eNe/phones.mlf', '/var/folders/qw/rjwzgfgd19z73sc1qs973r200000gn/T/tmp_g_eNe/temp', '/var/folders/qw/rjwzgfgd19z73sc1qs973r200000gn/T/tmp_g_eNe/words.mlf']' returned non-zero exit status 150

Any ideas what might be causing the problem?

— Reply to this email directly or view it on GitHub.

jamiebullock commented 10 years ago

Perfect!

Many thanks for looking into this. I had the following at the beginning of my dictionary:

12 T W EH1 L V
8 EY1 T

Removing these and replacing "12" with "TWELVE" and "8" with "EIGHT" in my .lab file fixed the problem.