I have a specific set of commands (one to three words) which I'd like to be
able to recognise. Although the online language-model tool is great for
producing n-grams from the provided sentences, mixing and matching words from
each line, I don't actually want a model which does this.
I'd rather have the language model strictly choose from the commands which I
list in the corpus, and not match different words from different commands.
Is there an easy way to modify the language model (perhaps removing or
manually adding n-grams) in order to achieve this restriction?
Many thanks in advance,
P
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
A quick Google shows that JSGF sounds like a good option. I'm only familiar
with the process of producing language models and dic files through the online
tool though. Do you have any pointers on tools for generating a JSGF suitable
for PocketSphinx though?
Thanks,
P
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
One additional question - when I've generated language models from a corpus
using the web tool, I get a dictionary (.dic) file. Do I use the same .dic
file with the jsgf model as I did with the lm model?
Thanks again.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I have a specific set of commands (one to three words) which I'd like to be
able to recognise. Although the online language-model tool is great for
producing n-grams from the provided sentences, mixing and matching words from
each line, I don't actually want a model which does this.
I'd rather have the language model strictly choose from the commands which I
list in the corpus, and not match different words from different commands.
Is there an easy way to modify the language model (perhaps removing or
manually adding n-grams) in order to achieve this restriction?
Many thanks in advance,
You probably want to use a grammar in JSGF format instead of language model,
don't you? Both pocketsphinx and sphinx4 support JSGF.
Hi,
A quick Google shows that JSGF sounds like a good option. I'm only familiar
with the process of producing language models and dic files through the online
tool though. Do you have any pointers on tools for generating a JSGF suitable
for PocketSphinx though?
Thanks,
http://java.sun.com/products/java-
media/speech/forDevelopers/JSGF/
Use it in pocketsphinx with -jsgf option. Just
pocketsphinx_continuous -jsgf your.jsgf
isntead of
http://wiki.freeswitch.org/wiki/Mod_pocketsphinx
Oh that's great, thanks!
One additional question - when I've generated language models from a corpus
using the web tool, I get a dictionary (.dic) file. Do I use the same .dic
file with the jsgf model as I did with the lm model?
Thanks again.
yes