Menu

"bn.bigram.arpa" problem: No \data\ mark in L

Help
eep1fc
2004-10-29
2012-09-22
  • eep1fc

    eep1fc - 2004-10-29

    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

     
    • shirleyyyyy

      shirleyyyyy - 2004-11-05

      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.

       

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.