Menu

Question about mk_mdef_gen

Help
forsubhi
2012-04-02
2012-09-22
  • forsubhi

    forsubhi - 2012-04-02

    I want to debug mk_mdef_gen and I see this command

    mk_mdef_gen

     if ($return_value = RunTool('mk_mdef_gen', $logfile, 0,
                    -phnlstfn => $phonefile,
                    -ocimdef => $ci_mdeffile,
                    -n_state_pm => $ST::CFG_STATESPERHMM)) {
          return $return_value;
        }
    

    I estimate that the command should be

    /media/sda5/sphinx/tutorial/digit2/bin/mk_mdef_gen
        -phnlstfn /media/sda5/sphinx/tutorial/digit2/model_architecture/digit.phonelist 
        -ocimdef /media/sda5/sphinx/tutorial/digit2/model_architecture/digit.ci.mdef 
        -n_state_pm 3
    

    but when I go to the source code of mk_mdef_gen I did,'t find main method and
    the above command didn'w work
    how can I debug this code and what is the purpose of RunTool method ?

     
  • Nickolay V. Shmyrev

    I did,'t find main method and

    Main function is located in the file

    SphinxTrain/src/programs/mk_mdef_gen/main.c

    how can I debug this code

    Just like any other application

    and what is the purpose of RunTool method

    RunTool is not the method, it's a Perl function. The purpose of this function
    is to execute binary tool in a proper environment and control it's exit
    status.

     
  • forsubhi

    forsubhi - 2012-04-05

    thank you very much , it is helpful

     

Log in to post a comment.