summaryrefslogtreecommitdiff
path: root/klm/search/weights.cc
diff options
context:
space:
mode:
authorKenneth Heafield <github@kheafield.com>2012-09-13 04:04:17 -0700
committerKenneth Heafield <github@kheafield.com>2012-09-13 04:04:17 -0700
commit8d0baa1dfb5c18f5be45b4d12b3f925dc04afc48 (patch)
treeaf96b81bfa50321d36a02bc036eabfeb29c32538 /klm/search/weights.cc
parenta548c46f3d636093d26f44d5b7642c98def6f351 (diff)
parent816f33174b2c2938a3df9c75b2834da6f5184a3e (diff)
Merge branch 'master' of github.com:kpu/cdec
Diffstat (limited to 'klm/search/weights.cc')
-rw-r--r--klm/search/weights.cc2
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);