summaryrefslogtreecommitdiff
path: root/klm/lm/weights.hh
diff options
context:
space:
mode:
authorredpony <redpony@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-11-10 22:44:53 +0000
committerredpony <redpony@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-11-10 22:44:53 +0000
commit3911c3c95647f97cdfffa1ae4a8ddc7f06d51b81 (patch)
tree580fac1c4fceaddee9b5f0c543b9819912c7504b /klm/lm/weights.hh
parent444dc83deaa35478140419e76d9d97d31c2aa457 (diff)
forgotten files
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@709 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'klm/lm/weights.hh')
-rw-r--r--klm/lm/weights.hh17
1 files changed, 17 insertions, 0 deletions
diff --git a/klm/lm/weights.hh b/klm/lm/weights.hh
new file mode 100644
index 00000000..1f38cf5e
--- /dev/null
+++ b/klm/lm/weights.hh
@@ -0,0 +1,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__