Reply To: Error loading Lookup Dictionary

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

#1030015
Powerkey
Participant

Well, I have looked it over a bunch of times and re-built the app from the tutorial and I always get the same error.

I checked the AcousticModelEnglish.bundle and it appears to be properly added to the project (well, as fas as I can tell, anyway). I went through the steps in the tutorial again with a brand new project and followed the steps exactly. I checked the built application that is downloaded to the phone and the AcousticModelEnglish.bundel is at the root level of the app bundle. It is also selected as a member of the target in Xcode. The Framework Search paths are updated automatically when it was added to the project.

Any suggestions?

I have included the log from the recent re-built project which is simplified. It looks mostly the same as the previous one, but maybe there is something in it that will help determine what I am doing wrong.

2016-04-09 17:56:02.934 TalkApp[3460:1095599] Starting OpenEars logging for OpenEars version 2.501 on 64-bit device (or build): iPhone running iOS version: 9.300000
2016-04-09 17:56:02.989 TalkApp[3460:1095599] Starting dynamic language model generation

INFO: ngram_model_arpa_legacy.c(504): ngrams 1=7, 2=9, 3=6
INFO: ngram_model_arpa_legacy.c(136): Reading unigrams
INFO: ngram_model_arpa_legacy.c(543):        7 = #unigrams created
INFO: ngram_model_arpa_legacy.c(196): Reading bigrams
INFO: ngram_model_arpa_legacy.c(561):        9 = #bigrams created
INFO: ngram_model_arpa_legacy.c(562):        4 = #prob2 entries
INFO: ngram_model_arpa_legacy.c(570):        5 = #bo_wt2 entries
INFO: ngram_model_arpa_legacy.c(293): Reading trigrams
INFO: ngram_model_arpa_legacy.c(583):        6 = #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):        7 = #unigrams created
INFO: ngram_model_dmp_legacy.c(652):        9 = #bigrams created
INFO: ngram_model_dmp_legacy.c(653):        4 = #prob2 entries
INFO: ngram_model_dmp_legacy.c(660):        5 = #bo_wt2 entries
INFO: ngram_model_dmp_legacy.c(664):        6 = #trigrams created
INFO: ngram_model_dmp_legacy.c(665):        2 = #prob3 entries
2016-04-09 17:56:03.060 TalkApp[3460:1095599] Done creating language model with CMUCLMTK in 0.070624 seconds.
2016-04-09 17:56:03.060 TalkApp[3460:1095599] Since there is no cached version, loading the language model lookup list for the acoustic model called AcousticModelEnglish
2016-04-09 17:56:03.061 TalkApp[3460:1095599] 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-09 17:56:03.065 TalkApp[3460:1095599] 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=0x147d51ce0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
Error: Not possible to create a dictionary for this wordset.
2016-04-09 17:56:03.069 TalkApp[3460:1095599] Attempting to start listening session from startListeningWithLanguageModelAtPath:
2016-04-09 17:56:03.070 TalkApp[3460:1095599] Error: you have invoked the method:

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

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

NSString *correctPathToMyLanguageModelFile = [myLanguageModelGenerator pathToSuccessfullyGeneratedLanguageModelWithRequestedName:@"TheNameIChoseForMyVocabulary"];

Feel free to copy and paste this code for your path to your language model, but remember to replace the part that says "TheNameIChoseForMyVocabulary" with the name you actually chose for your 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.