 aerialcombat
|
calling [languageModelGenerator generateLanguageModelFromArray:...] with language size of around 50 takes about 10 seconds on my iPhone 4. Would you say this is pretty normal?
I did test with different language sizes and the time seems to be directly proportional to the number of words in the language, but I never thought it would take this long, and I’m wondering if it’s perfectly normal. I haven’t explored into how a language model is generated, so I can’t say much more, but I’m just curious. Thanks. :)
PS, oh I AM using words that are most likely not in American dictionary, could this be the explanation maybe?
|
 Halle
|
Yes, there are two methods for finding the pronunciation — the main method is very fast and is used for words which are present in the big CMU phonetic dictionary, and the fallback method is used for words which aren’t present and takes about 10x longer. If you’re curious about the specifics of it, it’s pretty well documented in the LanguageModelGenerator source.
|