diff options
-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__ |