Joshua
open source statistical hierarchical phrase-based machine translation system
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
src/kenlm/lm/weights.hh
00001 #ifndef LM_WEIGHTS_H
00002 #define LM_WEIGHTS_H
00003 
00004 // Weights for n-grams.  Probability and possibly a backoff.
00005 
00006 namespace lm {
00007 struct Prob {
00008   float prob;
00009 };
00010 // No inheritance so this will be a POD.
00011 struct ProbBackoff {
00012   float prob;
00013   float backoff;
00014 };
00015 struct RestWeights {
00016   float prob;
00017   float backoff;
00018   float rest;
00019 };
00020 
00021 } // namespace lm
00022 #endif // LM_WEIGHTS_H