I have followed this tutorial.
After I run this code:
ngram-count -kndiscount -interpolate -text train-text.txt -lm your.lm
It gives me this error:
"One of modified KneserNey discounts is negative error in discount estimator for order 2."
How can I solve this problem?
There are 2 possibilities that
-kndiscountis giving you an error:datasetis small.datasetare small which is a hurdle for a properngramtraining usingkndiscount.The solution could be:
dataset.For reference have a look at this thread: https://sourceforge.net/p/cmusphinx/discussion/help/thread/97ae0e5c/#a760