diff options
author | redpony <redpony@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-11-10 22:44:53 +0000 |
---|---|---|
committer | redpony <redpony@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-11-10 22:44:53 +0000 |
commit | 3911c3c95647f97cdfffa1ae4a8ddc7f06d51b81 (patch) | |
tree | 580fac1c4fceaddee9b5f0c543b9819912c7504b /klm | |
parent | 444dc83deaa35478140419e76d9d97d31c2aa457 (diff) |
forgotten files
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@709 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'klm')
-rw-r--r-- | klm/lm/weights.hh | 17 |
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__ |