#1 Error while running the Dialog jar

v1.0 (example)
open
nobody
5
2008-11-10
2008-11-10
ahmed fayed
No

I'm getting the following error when trying to rung the Dialog Jar, I'm using jre 1.6, also I tried other jre versions and I got the same error.

Exception in thread "main" com.sun.speech.engine.recognition.TokenMgrError: Lexical error at line 6, column 10. Encountered: "\u00a7" (167), after : ""
at com.sun.speech.engine.recognition.JSGFParserTokenManager.getNextToken(JSGFParserTokenManager.java:1138)
at com.sun.speech.engine.recognition.JSGFParser.jj_scan_token(JSGFParser.java:1068)
at com.sun.speech.engine.recognition.JSGFParser.jj_3_1(JSGFParser.java:949)
at com.sun.speech.engine.recognition.JSGFParser.jj_2_1(JSGFParser.java:943)
at com.sun.speech.engine.recognition.JSGFParser.Name(JSGFParser.java:504)
at com.sun.speech.engine.recognition.JSGFParser.GrammarDeclaration(JSGFParser.java:402)
at com.sun.speech.engine.recognition.JSGFParser.GrammarUnit(JSGFParser.java:366)
at com.sun.speech.engine.recognition.JSGFParser.newGrammarFromJSGF(JSGFParser.java:138)
at com.sun.speech.engine.recognition.JSGFParser.newGrammarFromJSGF(JSGFParser.java:272)
at com.sun.speech.engine.recognition.BaseRecognizer.loadJSGF(BaseRecognizer.java:273)
at com.sun.speech.engine.recognition.BaseRecognizer.loadJSGF(BaseRecognizer.java:230)
at edu.cmu.sphinx.jsapi.JSGFGrammar.commitChanges(JSGFGrammar.java:615)
at edu.cmu.sphinx.jsapi.JSGFGrammar.createGrammar(JSGFGrammar.java:318)
at edu.cmu.sphinx.linguist.language.grammar.Grammar.allocate(Grammar.java:163)
at edu.cmu.sphinx.linguist.flat.FlatLinguist.allocate(FlatLinguist.java:319)
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.jsapi.dialog.DialogManager.allocate(DialogManager.java:146)
at demo.jsapi.dialog.Dialog.append(Dialog.java:100)
at demo.jsapi.dialog.Dialog.main(Dialog.java:139)

Regards.

Discussion

  • Is that still an issue, I just downloaded the package and got the error

    ***********
    Exception in thread "main" com.sun.speech.engine.recognition.TokenMgrError: Lexi
    cal error at line 6, column 10. Encountered: "\u00a7" (167), after : ""
    at com.sun.speech.engine.recognition.JSGFParserTokenManager.getNextToken
    (JSGFParserTokenManager.java:1138)
    at com.sun.speech.engine.recognition.JSGFParser.jj_scan_token(JSGFParser
    .java:1068)
    at com.sun.speech.engine.recognition.JSGFParser.jj_3_1(JSGFParser.java:9
    49)
    at com.sun.speech.engine.recognition.JSGFParser.jj_2_1(JSGFParser.java:9
    43)
    at com.sun.speech.engine.recognition.JSGFParser.Name(JSGFParser.java:504
    )
    at com.sun.speech.engine.recognition.JSGFParser.GrammarDeclaration(JSGFP
    arser.java:402)
    at com.sun.speech.engine.recognition.JSGFParser.GrammarUnit(JSGFParser.j
    ava:366)
    at com.sun.speech.engine.recognition.JSGFParser.newGrammarFromJSGF(JSGFP
    arser.java:138)
    at com.sun.speech.engine.recognition.JSGFParser.newGrammarFromJSGF(JSGFP
    arser.java:272)
    at com.sun.speech.engine.recognition.BaseRecognizer.loadJSGF(BaseRecogni
    zer.java:273)
    at com.sun.speech.engine.recognition.BaseRecognizer.loadJSGF(BaseRecogni
    zer.java:230)
    at edu.cmu.sphinx.jsapi.JSGFGrammar.commitChanges(JSGFGrammar.java:615)
    at edu.cmu.sphinx.jsapi.JSGFGrammar.createGrammar(JSGFGrammar.java:318)
    at edu.cmu.sphinx.linguist.language.grammar.Grammar.allocate(Grammar.jav
    a:163)
    at edu.cmu.sphinx.linguist.flat.FlatLinguist.allocate(FlatLinguist.java:
    319)
    at edu.cmu.sphinx.decoder.search.SimpleBreadthFirstSearchManager.allocat
    e(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.jsapi.dialog.DialogManager.allocate(DialogManager.java:146)
    at demo.jsapi.dialog.Dialog.append(Dialog.java:100)
    at demo.jsapi.dialog.Dialog.main(Dialog.java:139)

    ***********

    Any Suggestions

    Thanks

    Maged