summaryrefslogtreecommitdiff
path: root/klm/lm/weights.hh
blob: 1f38cf5e12e590ea1a0f7f11584ae50e3aacf3c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#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__