From 3911c3c95647f97cdfffa1ae4a8ddc7f06d51b81 Mon Sep 17 00:00:00 2001 From: redpony Date: Wed, 10 Nov 2010 22:44:53 +0000 Subject: forgotten files git-svn-id: https://ws10smt.googlecode.com/svn/trunk@709 ec762483-ff6d-05da-a07a-a48fb63a330f --- klm/lm/weights.hh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 klm/lm/weights.hh (limited to 'klm/lm') 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__ -- cgit v1.2.3