Menu

BatchModeRecognizer

Help
Sebastian
2008-04-20
2012-09-22
  • Sebastian

    Sebastian - 2008-04-20

    Good day everybody,

    i want to recognize words/sentences from feature file created by FeatureFileDumper. after read some sphinx documentation, i decided to use BatchModeRecognizer for that purpose.

    my questions are:
    1. is BatchModeRecognizer good tool for this purpose? are there any better tools or ways to handle this job ?
    2. when i tried BatchModeRecognizer, i got these exceptions. what should i check or do to solve it?

    C:\sphinx\sphinx4\bld\classes>java edu/cmu/sphinx/tools/batch/BatchModeRecognize
    r an4.config.xml an4_full.batch
    01:58.515 INFO logMath Log base is 1.0001
    01:58.515 INFO logMath Using AddTable when adding logs
    01:58.515 INFO logMath LogAdd table has 99022 entries.
    Error during decoding:

    java.lang.NullPointerException
    at edu.cmu.sphinx.model.acoustic.WSJ_8gau_13dCep_16k_40mel_130Hz_6800Hz.
    ModelLoader.loadProperties(ModelLoader.java:281)
    at edu.cmu.sphinx.model.acoustic.WSJ_8gau_13dCep_16k_40mel_130Hz_6800Hz.
    ModelLoader.getIsBinaryDefault(ModelLoader.java:295)
    at edu.cmu.sphinx.model.acoustic.WSJ_8gau_13dCep_16k_40mel_130Hz_6800Hz.
    ModelLoader.newProperties(ModelLoader.java:254)
    at edu.cmu.sphinx.util.props.PropertySheet.getOwner(PropertySheet.java:4
    27)
    at edu.cmu.sphinx.util.props.PropertySheet.getComponent(PropertySheet.ja
    va:270)
    at edu.cmu.sphinx.model.acoustic.WSJ_8gau_13dCep_16k_40mel_130Hz_6800Hz.
    Model.newProperties(Model.java:107)
    at edu.cmu.sphinx.util.props.PropertySheet.getOwner(PropertySheet.java:4
    27)
    at edu.cmu.sphinx.util.props.PropertySheet.getComponent(PropertySheet.ja
    va:270)
    at edu.cmu.sphinx.linguist.flat.FlatLinguist.setupAcousticModel(FlatLing
    uist.java:226)
    at edu.cmu.sphinx.linguist.flat.FlatLinguist.newProperties(FlatLinguist.
    java:189)
    at edu.cmu.sphinx.util.props.PropertySheet.getOwner(PropertySheet.java:4
    27)
    at edu.cmu.sphinx.util.props.PropertySheet.getComponent(PropertySheet.ja
    va:270)
    at edu.cmu.sphinx.decoder.search.SimpleBreadthFirstSearchManager.newProp
    erties(SimpleBreadthFirstSearchManager.java:139)
    at edu.cmu.sphinx.util.props.PropertySheet.getOwner(PropertySheet.java:4
    27)
    at edu.cmu.sphinx.util.props.PropertySheet.getComponent(PropertySheet.ja
    va:270)
    at edu.cmu.sphinx.decoder.AbstractDecoder.newProperties(AbstractDecoder.
    java:46)
    at edu.cmu.sphinx.decoder.Decoder.newProperties(Decoder.java:31)
    at edu.cmu.sphinx.util.props.PropertySheet.getOwner(PropertySheet.java:4
    27)
    at edu.cmu.sphinx.util.props.PropertySheet.getComponent(PropertySheet.ja
    va:270)
    at edu.cmu.sphinx.recognizer.Recognizer.newProperties(Recognizer.java:79
    )
    at edu.cmu.sphinx.util.props.PropertySheet.getOwner(PropertySheet.java:4
    27)
    at edu.cmu.sphinx.util.props.PropertySheet.getComponent(PropertySheet.ja
    va:270)
    at edu.cmu.sphinx.tools.batch.BatchModeRecognizer.newProperties(BatchMod
    eRecognizer.java:144)
    at edu.cmu.sphinx.util.props.PropertySheet.getOwner(PropertySheet.java:4
    27)
    at edu.cmu.sphinx.util.props.ConfigurationManager.lookup(ConfigurationMa
    nager.java:160)
    at edu.cmu.sphinx.tools.batch.BatchModeRecognizer.main(BatchModeRecogniz
    er.java:563)

    C:\sphinx\sphinx4\bld\classes>

    any corrections/clues/suggestions/comments anyone?
    thank you.

    regards,
    sebastian

     
    • Nickolay V. Shmyrev

      Its a correct tool but prepare it will not work out of box. In your case you have to add wsj jar to classpath.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.