diff options
author | Kenneth Heafield <github@kheafield.com> | 2012-09-13 11:15:32 +0100 |
---|---|---|
committer | Kenneth Heafield <github@kheafield.com> | 2012-09-13 11:15:32 +0100 |
commit | 8505fdfdf0bc4ce9acec42e1980a2fdd4f254109 (patch) | |
tree | 20f941c7f2a06a73337d5c6fb24ab1da49888399 /klm/search/weights.cc | |
parent | 58da794845e192cdae3b5ba96cacf234d6a66ed0 (diff) |
It compiles.
Diffstat (limited to 'klm/search/weights.cc')
-rw-r--r-- | klm/search/weights.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/klm/search/weights.cc b/klm/search/weights.cc index 82ff3f12..d65471ad 100644 --- a/klm/search/weights.cc +++ b/klm/search/weights.cc @@ -49,6 +49,8 @@ Weights::Weights(StringPiece text) { word_penalty_ = Steal("WordPenalty"); } +Weights::Weights(Score lm, Score oov, Score word_penalty) : lm_(lm), oov_(oov), word_penalty_(word_penalty) {} + search::Score Weights::DotNoLM(StringPiece text) const { DotProduct dot; Parse<const Map, DotProduct>(text, map_, dot); |