I am trying to run the demo script "sphinx-simple" from sphinx2. I downloaded the .dic file and .arpa file. But I get a error message looking like this
INFO: lm_3g.c(856): lm_3g.c(856): Reading LM file /home/frank/... ../bn.bigram.arpa (name "")
lm_3g.c(508): No \data\ mark in LM file
It seems that the script does not like this "bn.bigram.arpa".
Please give me a hand. Many thanks.
regards,
Frank
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm not sure what OS you are using now. In my case, i'm using cygwin in windows. i had the same problem with yours before. and i get some idea from this forum about the matter of "\n" and "\r\n".
so, i modified the lm_3g.c file like below:
do
fgets (string, sizeof (string), fp);
while ( (strcmp (string, "\data\\r\n") != 0) && (! feof (fp)) );
if (strcmp (string, "\data\\r\n") != 0)
QUIT((stderr, "%s(%d): No \data\ mark in LM file\n", FILE, LINE));
I'm not sure is it a good solution. anyway, you can try. or u try to check the turtle.lm file to make sure the \data\ is there because your problem is can't find it.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I am trying to run the demo script "sphinx-simple" from sphinx2. I downloaded the .dic file and .arpa file. But I get a error message looking like this
INFO: lm_3g.c(856): lm_3g.c(856): Reading LM file /home/frank/... ../bn.bigram.arpa (name "")
lm_3g.c(508): No \data\ mark in LM file
It seems that the script does not like this "bn.bigram.arpa".
Please give me a hand. Many thanks.
regards,
Frank
I'm not sure what OS you are using now. In my case, i'm using cygwin in windows. i had the same problem with yours before. and i get some idea from this forum about the matter of "\n" and "\r\n".
so, i modified the lm_3g.c file like below:
do
fgets (string, sizeof (string), fp);
while ( (strcmp (string, "\data\\r\n") != 0) && (! feof (fp)) );
if (strcmp (string, "\data\\r\n") != 0)
QUIT((stderr, "%s(%d): No \data\ mark in LM file\n", FILE, LINE));
I'm not sure is it a good solution. anyway, you can try. or u try to check the turtle.lm file to make sure the \data\ is there because your problem is can't find it.