Menu

bw tool in sphinxtrain

Help
2015-08-26
2015-12-10
  • anvita tiwari

    anvita tiwari - 2015-08-26

    hello
    I am building a new langauage model but in between I got stuck because their in one step where we have to collect statistics from the adaptation data This is done using the bw program from SphinxTrain. You should be able to find bw tool in a sphinxtrain installation in a folder /usr/local/libexec/sphinxtrain (or under other prefix on Linux) or in bin\Release (in sphinxtrain directory on Windows).

    but when i am running this cmd "cp ../sphinxtrain/bin.i686-pc-linux-gnu/bw ." its giving me a error "no such file ofr directory
    and when i am doing (ls -lrt) under my sphinxtrain i am not able to see any bw tool
    what do do where can i find this
    please reply

     

    Last edit: anvita tiwari 2015-08-26
    • Nickolay V. Shmyrev

      but when i am running this cmd "cp ../sphinxtrain/bin.i686-pc-linux-gnu/bw ." its giving me a error "no such file ofr directory

      I'm not sure why do you want to run this particular command, but tutorial tells you different things, you just need to read and follow it. On Linux you can run

            cp /usr/local/libexec/sphinxtrain/bw .
      
       
      • anvita tiwari

        anvita tiwari - 2015-08-27

        thanks for reply
        but when I have executed this(cp /usr/local/libexec/sphinxtrain/bw .) I got "cp: cannot stat '/usr/local/libexec/sphinxtrain/bw': no such file or directory

        please reply

         
        • Nickolay V. Shmyrev

          To understand where sphinxtrain was installed you can run installation again and read the log. That should give you a hint about location of bw library.

           
          • anvita tiwari

            anvita tiwari - 2015-08-28

            thanks for reply Nickolay V. Shmyrev
            but this time i got another error when I have executed this set of cmd.

            ~/cmu_sphinx/sphinxtrain-5prealpha$ ./bw -hmmdir en-us -moddeffn en-us/mdef.txt -ts2cbfn .ptm. -feat 1s_c_d_dd -svspec 0-12/13-25/26-38 -cmn current -agc none -dictfn cmudict-en-us.dict -ctlfn arctic20.fields -lsnfn arctic20.transcription -accumdir .
            INFO: main.c(229): Compiled on Aug 26 2015 at 12:21:47
            Current configuration:
            [NAME] [DEFLT] [VALUE]
            -2passvar no no
            -abeam 1e-100 1.000000e-100
            -accumdir .
            -agc none none
            -agcthresh 2.0 2.000000e+00
            -bbeam 1e-100 1.000000e-100
            -cb2mllrfn .1cls. .1cls.
            -cepdir
            -cepext mfc mfc
            -ceplen 13 13
            -ckptintv 0
            -cmn current current
            -cmninit 8.0 8.0
            -ctlfn arctic20.fields
            -diagfull no no
            -dictfn cmudict-en-us.dict
            -example no no
            -fdictfn
            -feat 1s_c_d_dd 1s_c_d_dd
            -fullsuffixmatch no no
            -fullvar no no
            -help no no
            -hmmdir en-us
            -latdir
            -latext
            -lda
            -ldadim 0 0
            -lsnfn arctic20.transcription
            -lw 11.5 1.150000e+01
            -maxuttlen 0 0
            -meanfn
            -meanreest yes yes
            -mixwfn
            -mixwreest yes yes
            -mllrmat
            -mmie no no
            -mmie_type rand rand
            -moddeffn en-us/mdef.txt
            -mwfloor 0.00001 1.000000e-05
            -npart 0
            -nskip 0
            -outphsegdir
            -outputfullpath no no
            -part 0
            -pdumpdir
            -phsegdir
            -phsegext phseg phseg
            -runlen -1 -1
            -sentdir
            -sentext sent sent
            -spthresh 0.0 0.000000e+00
            -svspec 0-12/13-25/26-38
            -timing yes yes
            -tmatfn
            -tmatreest yes yes
            -topn 4 4
            -tpfloor 0.0001 1.000000e-04
            -ts2cbfn .ptm.
            -varfloor 0.00001 1.000000e-05
            -varfn
            -varnorm no no
            -varreest yes yes
            -viterbi no no

            INFO: feat.c(715): Initializing feature stream to type: '1s_c_d_dd', ceplen=13, CMN='current', VARNORM='no', AGC='none'
            INFO: cmn.c(143): mean[0]= 12.00, mean[1..12]= 0.0
            INFO: main.c(255): Using subvector specification 0-12/13-25/26-38
            INFO: main.c(318): Reading en-us/mdef.txt
            ERROR: "model_def_io.c", line 413: Unable to open en-us/mdef.txt for reading: No such file or directory
            FATAL: "main.c", line 1846: initialization failed

            please reply why this "model_def_io.c" unable to open en-us/mdef.txt for reading: No such file or directory

             
            • anvita tiwari

              anvita tiwari - 2015-08-28

              hello please reply not able to find out solution for the above problem
              please reply

               

Log in to post a comment.