mosesdecoder/lm/weights.hh
2011-11-17 12:49:55 +00:00

18 lines
293 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;
};
} // namespace lm
#endif // LM_WEIGHTS__