Welcome to mirror list, hosted at ThFree Co, Russian Federation.

weights.hh « lm - github.com/kpu/kenlm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f14312753db21c97b2b941b2f72dc82e65162d5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef LM_WEIGHTS_H
#define LM_WEIGHTS_H

// 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_H