Menu

help with perl scripts

Help
kris
2007-02-10
2012-09-22
  • kris

    kris - 2007-02-10

    hello to all.

    i am about to do preliminary decode with Sphinx 3 release version and Sphinxtrain nightly build with rm1 when this error occured.

    C:\Documents and Settings....\rm1>perl scripts_pl/decode/s3decode.pl 1 1
    Decoding 600 segments starting at 0 (part 1 of 1)
    Using files: 0% ERROR: ERROR: "c:\documents and settings....\sphinx3\src\libutil\cmd_ln.c", line 452: Unknown argument: and
    ERROR: ERROR: "c:\documents and settings....\sphinx3\src\libutil\cmd_ln.c", line 523: cmd_ln_parse fail
    ed, forced exit
    Finished

    can anybody help me figure out where i went wrong? thanx in advance..

    • kris
     
    • kris

      kris - 2007-02-13

      i see.thank you..

      i retrained my acoustic model to another directory and i corrected the script from

      "-hyp $matchfile " . to "-hyp \"$matchfile\" " . but an error still occurred. the directory i transferred my training files still had spaces on it.

      this is the new directory : C:\Documents and Settings\testting2\rm1
      here is the error :

      MODULE: DECODE Decoding using models previously trained
      Can't open perl script "C:/Documents": No such file or directory
      Can't open file C:/Documents and Settings/testting2/rm1/result/rm1.match

      on the other hand, i also made another training on a directory with no spaces and the training was successful and i can do decoding successfully.

      but i still have a question,

      what should i do to the script if i choose to have my training files in a directory with spaces in it?

      thanx adavance

      -kris

       
    • David Huggins-Daines

      Hmm, this seems to be an error in the Perl script. One of the arguments to Sphinx3 is not being quoted, and your training directory has spaces in it. I believe it's this line, line 146:

      "-hyp $matchfile " .
      

      You should change this to:

      "-hyp \"$matchfile\" " .
      

      Try that and see if it works.

       

Log in to post a comment.