Menu

make_feats - no file in database for training

Help
Yuni
2011-07-30
2012-09-22
  • Yuni

    Yuni - 2011-07-30

    Hello,

    I have a question when training it is required that we execute these commands

    ./scripts_pl/make_feats -ctl etc/your_db_train.fileids
    ./scripts_pl/make_feats -ctl etc/your_db_test.fileids
    

    However, when I tried to do this, it said that there was no such file or
    directory in the folder of our database which was created when I did these
    commands

    ../sphinxtrain/scripts_pl/setup_SphinxTrain.pl - task filitext
    ../pocketsphinx/scripts/setup_sphinx.pl - task filitext
    

    I found a make_feats.pl file in filitext/scripts_pl/000.comp_feat, is that the
    same?

    I tried executing the command from that directory and it returned this

    $ ./scripts_pl/000.comp_feat/make_feats.pl -ctl etc/an4_train.fileids
    Configuration (e.g. etc/sphinx_train.cfg) not defined
    Compilation failed in require at ./scripts_pl/000.comp_feat/make_feats.pl line 5
    2.
    BEGIN failed--compilation aborted at ./scripts_pl/000.comp_feat/make_feats.pl li
    ne 52.
    

    Where should the make_feats file come from? Thanks for your help!

     
  • Yuni

    Yuni - 2011-07-30

    I posted the wrong code block.

    It should be this.

    Yuni@Yuni-PC /cygdrive/d/thesis/filitext
    $ ./scripts_pl/000.comp_feat/make_feats.pl -ctl etc/filitext_train.fileids
    Extracting  segments starting at  (part -ctl of etc/filitext_train.fileids)
    Could not find executable for /cygdrive/d/thesis/filitext/bin/sphinx_fe at scrip
    ts_pl/000.comp_feat/../lib/SphinxTrain/Util.pm line 299.
    

    Thanks in advance.

     
  • Yuni

    Yuni - 2011-07-30

    If I copy the make_feats.pl from the 000.comp_feat folder to the scripts_pl
    folder and run

     perl make_feats.pl -ctl etc/filitext_train.fileids
    

    I get this

    Yuni@Yuni-PC /cygdrive/d/thesis/filitext/scripts_pl
    $ perl make_feats.pl -ctl etc/filitext_train.fileids
    Can't locate SphinxTrain/Config.pm in @INC (@INC contains: ../lib /usr/lib/perl5
    /5.10/i686-cygwin /usr/lib/perl5/5.10 /usr/lib/perl5/site_perl/5.10/i686-cygwin
    /usr/lib/perl5/site_perl/5.10 /usr/lib/perl5/vendor_perl/5.10/i686-cygwin /usr/l
    ib/perl5/vendor_perl/5.10 /usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/vendor_per
    l/5.8 .) at make_feats.pl line 51.
    BEGIN failed--compilation aborted at make_feats.pl line 51.
    

    When I setup SphinxTrain for training, I can see that it installs the
    make_feats.pl into the bin folder however, when I check the bin folder it is
    not there. Is there a step that I missed?

    Thanks!

     
  • Nickolay V. Shmyrev

    Hello sushixuni

    You are working with an experimental snapshot code which is not guaranteed to
    be stable as well as not guaranteed to be in match with documentation. You
    need to account for that and actually try to understand what is going on. At
    least you need to read the messages you get from the program. I know it's
    not always the case and you often press OK without reading the message in the
    dialog box and get all the files on your system deleted but if you want to be
    a developer you need to learn to read the messages. Because they help you
    to solve the problem.

    Could not find executable for /cygdrive/d/thesis/filitext/bin/sphinx_fe at scrip
    ts_pl/000.comp_feat/../lib/SphinxTrain/Util.pm line 299.
    

    This message clearly says you that you need to copy sphinx_fe binary to bin
    subfolder in your acoustic model training folder

    To run the feature extraction just run the script

    ./scripts_pl/000.comp_feat/slave_feat.pl
    

    Do not pass any arguments to it, it will understand everything automatically.

     
  • Yuni

    Yuni - 2011-07-30

    Thank you!

     
  • ammar

    ammar - 2012-02-16

    please can anyone help me to solve my error

    Configuration (e.g. etc/sphinx_train.cfg) not defined
    Compilation failed in require at
    /home/ammar/sphinxtrain-1.0.7/scripts_pl/RunAll.pl line 48.
    BEGIN failed--compilation aborted at
    /home/ammar/sphinxtrain-1.0.7/scripts_pl/RunAll.pl line 48.
    ammar@speech2:~/sphinxtrain-1.0.7$

     
  • Nickolay V. Shmyrev

    please can anyone help me to solve my error

    It doesn't seem like you are running this command from a proper folder. You
    need to run make_feats script from database root folder, not from sphinxtrain
    folder. See for details

    http://cmusphinx.sourceforge.net/wiki/tutorialam

    Please start a new thread to ask a new question. A form to start a thread is
    located at the bottom of the forum page.

     
  • ammar

    ammar - 2012-02-16

    can you help me more because my command is wrong in line 48 i don't know what
    does mean

     
  • Nickolay V. Shmyrev

    The problem is only a sign of the incorrect action you have taken. Once you
    will correct your actions and start a feature extraction command from a
    database folder everything will be ok.

     
  • kimia

    kimia - 2012-05-07

    hi,

    I designed my own database, and I read through the tutorial line by line , but
    when run command:
    ./scripts_pl/make_feats.pl -ctl etc/me_train.fileids

    I get this error:
    Configuration (e.g. etc/sphinx_train.cfg) not defined
    Compilation failed in require at ./scripts_pl/make_feats.pl line 43.
    BEGIN failed--compilation aborted at ./scripts_pl/make_feats.pl line 43.

    when I look up make.feats.pl line 43 I find

    use SphinxTrain::Util;

    which I checked sphinxtrain-1.0.7/scripts_pl/lib/SphinxTrain# , and I noticed
    that there is a Util.pm file.

    I really have no idea about this problem , when I try it with an4 , it works
    but not with my own database! what aspect did I ignore while making this
    database? anyone can help?

    thanks

     
  • Nickolay V. Shmyrev

    Most likely you have made a syntax error when you edited the sphinx_train.cfg
    file. To get more definite answer you need to provide your training folder as
    described in troubleshooting section in the tutorial.

    Please learn to start a new thread to ask a new question. The form to start
    the thread is in the bottom of the forum.

     

Log in to post a comment.