Skip to content

lmplz error

September 27, 2016
terminate called after throwing an instance of 'lm::builder::BadDiscountException'

 what(): /usr/local/src/mosesdecoder/lm/builder/ in void lm::builder::{anonymous}::StatCollector::CalculateDiscounts(const lm::builder::DiscountConfig&) threw BadDiscountException because `discounts_[i].amount[j] < 0.0 || discounts_[i].amount[j] > j'.

ERROR: 4-gram discount out of range for adjusted count 3: -0.57606


  • lower your n-gram
  • or add more monolingual corpus

From → Uncategorized

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: