pocketsphinx-android icon indicating copy to clipboard operation
pocketsphinx-android copied to clipboard

pocketsphinx - how to user new language model in android?

Open BeanStalka opened this issue 7 years ago • 3 comments

I used the training tool and got a .dic and a .lm file

How do I tell PocketSphinx to use the new .lm file?

I do not see a .SetLanguageModel method anywhere on the recognizer.

Please help as I'm sure I am missing something.

BeanStalka avatar Jul 13 '17 15:07 BeanStalka

On Thu, 2017-07-13 at 15:37 +0000, BeanStalka wrote:

I used the training tool and got a .dic and a .lm file How do I tell PocketSphinx to use the new .lm file? I do not see a .SetLanguageModel method anywhere on the recognizer. Please help as I'm sure I am missing something. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

https://github.com/cmusphinx/pocketsphinx-android- demo/blob/master/app/src/main/java/edu/cmu/pocketsphinx/demo/PocketSphi nxActivity.java#L241

mbait avatar Jul 13 '17 16:07 mbait

I am currently using a KeyPhraseSearch. That line of code refers to a NGramSearch.

How do I use my new language model while using KeyPhraseSearch?

Or does it not apply to that type of search?

BeanStalka avatar Jul 13 '17 16:07 BeanStalka

Keyword search can be done with a phrase or a list of phrases. See the demo, it will answer all your questions.

On Jul 13, 2017 9:18 AM, "BeanStalka" [email protected] wrote:

I am currently using a KeyPhraseSearch. That line of code refers to a NGramSearch.

How do I use my new language model while using KeyPhraseSearch?

Or does it not apply to that type of search?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cmusphinx/pocketsphinx-android/issues/31#issuecomment-315128102, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJx4qLvLJWjyazHW_jYsnb5nFKkhPI_ks5sNkNdgaJpZM4OXK91 .

mbait avatar Jul 13 '17 16:07 mbait