mosesdecoder/lm/weights.hh
2012-06-28 10:58:59 -04:00

23 lines
362 B
C++

#ifndef LM_WEIGHTS__
#define LM_WEIGHTS__
// Weights for n-grams. Probability and possibly a backoff.
namespace lm {
struct Prob {
float prob;
};
// No inheritance so this will be a POD.
struct ProbBackoff {
float prob;
float backoff;
};
struct RestWeights {
float prob;
float backoff;
float rest;
};
} // namespace lm
#endif // LM_WEIGHTS__