Menu

problem in creating .dmp file from .lm file

Help
2010-11-08
2012-09-22
  • Basit Mahmood

    Basit Mahmood - 2010-11-08

    Hi to all,
    Hope you all will be fine. Actually i am new to sphinx 4. The problem is i
    have created a text file and then created the language model using lmtool.
    Then i downloaded the utility lm3g2dmp and then tried to convert my .lm file
    to .dmp format. But when i try to do this. I got an error. I am doing this on
    linux. I want to ask a question
    Is it necessary to convert my .lm file to .dmp format? Can i use .lm file
    directly without converting it to .dmp?
    How can i convert my .lm file to .dmp on windows xp?

     
  • Nickolay V. Shmyrev

    hen i downloaded the utility lm3g2dmp and then tried to convert my .lm file
    to .dmp format. But when i try to do this. I got an error.

    lm3g2dmp is obsolete tool, you shouldn't use it. To find information about
    conversion see our tutorial:

    http://cmusphinx.sourceforge.net/wiki/tutoriallm#converting_model_into_dmp_fo
    rmat

    When you ask about error always try to describe it in details, provide error
    message, provide a command you are running, describe your expectatations

    Is it necessary to convert my .lm file to .dmp format?

    Yes

    Can i use .lm file directly without converting it to .dmp?

    No

    How can i convert my .lm file to .dmp on windows xp?

    Using sphinx_lm_convert from sphinxbase.

     
  • Basit Mahmood

    Basit Mahmood - 2010-11-08

    Hi thanks:)
    It has been converted. Actually i was using the wrong syntax. I want to ask a
    question. Suppose i use JSGF grammer file, then what parameters i will use in
    xml file for dictinary, filler and .lm.DMP files. Because in this case there
    is only one file (.gram file).

    <component name="trigramModel" type="edu.cmu.sphinx.linguist.language.ngram.large.LargeTrigramModel">
        <property name="unigramWeight" value="0.7"/>
        <property name="maxDepth" value="3"/>
        <property name="logMath" value="logMath"/>
        <property name="dictionary" value="dictionary"/>
        <property name="location" 
        value="the name of the language model file 
               for example <your_training_folder>/etc/<your_model_name>.lm.DMP"/>  ..in case of JSGF what it will be?
      </component>
    
      <component name="dictionary" type="edu.cmu.sphinx.linguist.dictionary.FastDictionary">
        <property name="dictionaryPath"
         value="the name of the dictionary file 
               for example <your_training_folder>/etc/<your_model_name>.dic"/>
        <property name="fillerPath" 
         value="the name of the filler file 
               for example <your_training_folder>/etc/<your_model_name>.filler"/>
        <property name="addSilEndingPronunciation" value="false"/>
        <property name="allowMissingWords" value="false"/>
        <property name="unitManager" value="unitManager"/>
      </component>
    

    when i make a corpus file and using online tool then it creates .dic and .lm
    file but no filler file. I want to ask how can i make filler file. Is filler
    file is just a text file(.txt file)? or i have to create it with some tool?
    Thanks

     
  • Basit Mahmood

    Basit Mahmood - 2010-11-08

    Sorry forgot to ask something. I also want to ask is transcription file and
    fields file also just a text file(.txt file) in which sentence is written and
    your voice path is mention with each sentence.
    Thanks

     
  • Nickolay V. Shmyrev

    i use JSGF grammer file, then what parameters i will use in xml file for
    dictinary, filler and .lm.DMP files.

    I suggest you to read demo example

    when i make a corpus file and using online tool then it creates .dic and .lm
    file but no filler file. I want to ask how can i make filler file. Is filler
    file is just a text file(.txt file)? or i have to create it with some tool?

    Filler dictionary goes together with acoustic model

    Sorry forgot to ask something. I also want to ask is transcription file and
    fields file also just a text file(.txt file) in which sentence is written and
    your voice path is mention with each sentence. Thanks

    Yes

     

Log in to post a comment.