Well, I was able to get my transcriber demo working with wsj and hellongram.trigram.lm but after running through some larger audio files I realized I need a larger vocabulary. So I decided to try HUB4 and it will load the program and then go through all the dictionary missing words errrors and that is where trouble strikes. After the warinings I for some reason get a NullPointerException error and I do not know why it is being produced. Here is my error message and config file.
Exception in thread "main" java.lang.NullPointerException
at edu.cmu.sphinx.linguist.util.HMMPool.buildID(HMMPool.java:241)
at edu.cmu.sphinx.linguist.lextree.HMMTree.getHMM(HMMTree.java:323)
at edu.cmu.sphinx.linguist.lextree.HMMTree.addPronunciation(HMMTree.java:289)
at edu.cmu.sphinx.linguist.lextree.HMMTree.addWord(HMMTree.java:259)
at edu.cmu.sphinx.linguist.lextree.HMMTree.addWords(HMMTree.java:245)
at edu.cmu.sphinx.linguist.lextree.HMMTree.compile(HMMTree.java:164)
at edu.cmu.sphinx.linguist.lextree.HMMTree.<init>(HMMTree.java:79)
at edu.cmu.sphinx.linguist.lextree.LexTreeLinguist.compileGrammar(LexTreeLinguist.java:478)
at edu.cmu.sphinx.linguist.lextree.LexTreeLinguist.allocate(LexTreeLinguist.java:406)
at edu.cmu.sphinx.decoder.search.SimpleBreadthFirstSearchManager.allocate(SimpleBreadthFirstSearchManager.java:602)
at edu.cmu.sphinx.decoder.Decoder.allocate(Decoder.java:109)
at edu.cmu.sphinx.recognizer.Recognizer.allocate(Recognizer.java:182)
at demo.sphinx.transcriber.Transcriber.main(Transcriber.java:55)
Well, I was able to get my transcriber demo working with wsj and hellongram.trigram.lm but after running through some larger audio files I realized I need a larger vocabulary. So I decided to try HUB4 and it will load the program and then go through all the dictionary missing words errrors and that is where trouble strikes. After the warinings I for some reason get a NullPointerException error and I do not know why it is being produced. Here is my error message and config file.
I used this to run the program:
>java -jar -mx512m bin/transcriber.jar C:\sphinx\sphinx4-1.0beta\tests\result\lattice\left.wav
ERROR MESSAGE:
Exception in thread "main" java.lang.NullPointerException
at edu.cmu.sphinx.linguist.util.HMMPool.buildID(HMMPool.java:241)
at edu.cmu.sphinx.linguist.lextree.HMMTree.getHMM(HMMTree.java:323)
at edu.cmu.sphinx.linguist.lextree.HMMTree.addPronunciation(HMMTree.java:289)
at edu.cmu.sphinx.linguist.lextree.HMMTree.addWord(HMMTree.java:259)
at edu.cmu.sphinx.linguist.lextree.HMMTree.addWords(HMMTree.java:245)
at edu.cmu.sphinx.linguist.lextree.HMMTree.compile(HMMTree.java:164)
at edu.cmu.sphinx.linguist.lextree.HMMTree.<init>(HMMTree.java:79)
at edu.cmu.sphinx.linguist.lextree.LexTreeLinguist.compileGrammar(LexTreeLinguist.java:478)
at edu.cmu.sphinx.linguist.lextree.LexTreeLinguist.allocate(LexTreeLinguist.java:406)
at edu.cmu.sphinx.decoder.search.SimpleBreadthFirstSearchManager.allocate(SimpleBreadthFirstSearchManager.java:602)
at edu.cmu.sphinx.decoder.Decoder.allocate(Decoder.java:109)
at edu.cmu.sphinx.recognizer.Recognizer.allocate(Recognizer.java:182)
at demo.sphinx.transcriber.Transcriber.main(Transcriber.java:55)
CONFIG FILE:
<?xml version="1.0" encoding="UTF-8"?>
<!--
Sphinx-4 Configuration file
-->
<!-- ******** -->
<!-- an4 configuration file -->
<!-- ******** -->
<config>
</component>
<!-- ******** -->
<!-- The linguist configuration -->
<!-- ******** -->
<component name="trigramModel"
type="edu.cmu.sphinx.linguist.language.ngram.large.LargeTrigramModel">
<property name="unigramWeight" value=".5"/>
<property name="maxDepth" value="3"/>
<property name="logMath" value="logMath"/>
<property name="dictionary" value="dictionary"/>
<property name="location"
value="/sphinx/sphinx4-1.0beta/language_model.arpaformat.DMP"/>
</component>
</config>