Reply To: Adding custom words to the LanguageModelGeneratorList.txt

Home Forums OpenEars Adding custom words to the LanguageModelGeneratorList.txt Reply To: Adding custom words to the LanguageModelGeneratorList.txt

#1024555
Halle Winkler
Politepix

1.Once I run the app, for all the words that are not in the dictionary, the fallback method generates the pronunciations for them and adds them to the .dic file. The next time the app is run, the same words won’t go through the fallback method again.

No – if you look at the logging, it shows that the fallback method is being run every time you run the app. That is the situation which prompted you to compose this question, I believe:

every time the app runs, every time it sees new words, I get the following:

Using convertGraphemes for the word or phrase SAMEVAR which doesn’t appear in the dictionary

Your question above is whether you can change LanguageModelGeneratorList.txt so that the fallback method isn’t used, which you can – by adding entries to it as described in the blog post.

Then you followed up and asked a new question, which was where to find pronunciations that were automatically generated so you wouldn’t have to create them yourself according to my suggestion for finding rhyming words in the blog post. I explained that you should actually create them manually, but that fallback pronunciations are being automatically created when you create your .dic file using OELanguageModelGenerator, so you can get all of the automatically-created pronunciations out of the .dic file that is being created by OELanguageModelGenerator.

Take the .dic file that is generated in the app session that has all of the logging like this:

Using convertGraphemes for the word or phrase SAMEVAR which doesn’t appear in the dictionary

And add its lines which are not present in LanguageModelGeneratorList.txt to LanguageModelGeneratorList.txt, using a text editor. This will not give you as good results as making careful manual entries, but it is the way to get all of the automatically-created pronunciations that were made by the fallback method.