0

I am trying to improve accuracy of pocketsphinx using a dictionary.. I gave a list of words like

 apple
 ball
 bottle

Many a time I noticed that it gives me a combination of these words as the result

 apple ball
 bottle ball etc

Is there a way to solve this problem? Any flag that says output only one of these words and not a combination.

Nikolay Shmyrev
  • 24,897
  • 5
  • 43
  • 87
user4543816
  • 87
  • 2
  • 9

1 Answers1

0

You can use a grammar like this instead of a language model

 #JSGF V1.0; 
 grammar test;
 public <result> = apple | ball | book;

For more details see cmusphinx language model tutorial

http://cmusphinx.sourceforge.net/wiki/tutoriallm

Nikolay Shmyrev
  • 24,897
  • 5
  • 43
  • 87