summaryrefslogtreecommitdiff
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
commitfd02041c3f1bd1157ecf7c0dbd1c444fb02aa313 (patch)
tree9b56dc97d0a5b1f92e22213439911a8ffa98057b
parente2d7d88579e291ab2120b813270e51f6274025f6 (diff)
forgotten files
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@709 ec762483-ff6d-05da-a07a-a48fb63a330f
-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__