Reputation: 3200
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?
Upvotes: 3
Views: 2480
Reputation: 61
There are 2 possibilities that -kndiscount
is giving you an error:
dataset
is small.dataset
are small which is a hurdle for a proper ngram
training using kndiscount
.The solution could be:
dataset
.For reference have a look at this thread: https://sourceforge.net/p/cmusphinx/discussion/help/thread/97ae0e5c/#a760
Upvotes: 3