Reply To: Error loading Lookup Dictionary

Home Forums OpenEars Error loading Lookup Dictionary Reply To: Error loading Lookup Dictionary


Okay, OELogging and verbosePocketSphinx are enabled…

2016-04-08 10:53:47.992 TalkApp[2774:811646] Starting OpenEars logging for OpenEars version 2.501 on 64-bit device (or build): iPhone running iOS version: 9.300000
2016-04-08 10:53:47.993 TalkApp[2774:811646] Creating shared instance of OEPocketsphinxController
2016-04-08 10:53:48.039 TalkApp[2774:811646] Starting dynamic language model generation

INFO: ngram_model_arpa_legacy.c(504): ngrams 1=37, 2=70, 3=35
INFO: ngram_model_arpa_legacy.c(136): Reading unigrams
INFO: ngram_model_arpa_legacy.c(543):       37 = #unigrams created
INFO: ngram_model_arpa_legacy.c(196): Reading bigrams
INFO: ngram_model_arpa_legacy.c(561):       70 = #bigrams created
INFO: ngram_model_arpa_legacy.c(562):        3 = #prob2 entries
INFO: ngram_model_arpa_legacy.c(570):        3 = #bo_wt2 entries
INFO: ngram_model_arpa_legacy.c(293): Reading trigrams
INFO: ngram_model_arpa_legacy.c(583):       35 = #trigrams created
INFO: ngram_model_arpa_legacy.c(584):        2 = #prob3 entries
INFO: ngram_model_dmp_legacy.c(521): Building DMP model...
INFO: ngram_model_dmp_legacy.c(551):       37 = #unigrams created
INFO: ngram_model_dmp_legacy.c(652):       70 = #bigrams created
INFO: ngram_model_dmp_legacy.c(653):        3 = #prob2 entries
INFO: ngram_model_dmp_legacy.c(660):        3 = #bo_wt2 entries
INFO: ngram_model_dmp_legacy.c(664):       35 = #trigrams created
INFO: ngram_model_dmp_legacy.c(665):        2 = #prob3 entries
2016-04-08 10:53:48.086 TalkApp[2774:811646] Done creating language model with CMUCLMTK in 0.045739 seconds.
2016-04-08 10:53:48.086 TalkApp[2774:811646] Since there is no cached version, loading the language model lookup list for the acoustic model called AcousticModelEnglish
2016-04-08 10:53:48.087 TalkApp[2774:811646] Error: an attempt was made to load the lookup dictionary for the acoustic model at the path AcousticModelEnglish and it wasn't possible to complete.  This file does not appear to exist. Please ask for help in the forums and be sure to turn on all logging. An exception or unpredictable behavior should be expected now since this file is a requirement.
2016-04-08 10:53:48.091 TalkApp[2774:811646] Additionally, there was an error of Error Domain=NSCocoaErrorDomain Code=260 "The file “LanguageModelGeneratorLookupList.text” couldn’t be opened because there is no such file." UserInfo={NSFilePath=AcousticModelEnglish/LanguageModelGeneratorLookupList.text, NSUnderlyingError=0x13e667d10 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
2016-04-08 10:53:48.091 TalkApp[2774:811646] Attempting to start listening session from startListeningWithLanguageModelAtPath:
2016-04-08 10:53:48.092 TalkApp[2774:811646] Error: you have invoked the method:

startListeningWithLanguageModelAtPath:(NSString *)languageModelPath dictionaryAtPath:(NSString *)dictionaryPath acousticModelAtPath:(NSString *)acousticModelPath languageModelIsJSGF:(BOOL)languageModelIsJSGF

with a dictionaryPath which is nil. If your call to OELanguageModelGenerator did not return an error when you generated this language model or grammar, that means the correct path to your phonetic dictionary that you should pass to this method's dictionaryPath argument is as follows:

NSString *correctPathToMyPhoneticDictionaryFile = [myLanguageModelGenerator pathToSuccessfullyGeneratedDictionaryWithRequestedName:@"TheNameIChoseForMyVocabulary"];

Feel free to copy and paste this code for your path to your phonetic dictionary, but remember to replace the part that says "TheNameIChoseForMyVocabulary" with the name you actually chose for your grammar or language model or you will get this error again (and replace myLanguageModelGenerator with the name of your OELanguageModelGenerator instance). Since this file is required, expect an exception or undocumented behavior shortly.