From 08be3b6b4f63a556f315f3a1da27b59709fb087d Mon Sep 17 00:00:00 2001 From: Hieu Hoang Date: Tue, 15 Jul 2014 00:13:35 +0100 Subject: [PATCH] new LBLLM based on LanguageModel class --- moses/LM/oxlm/LBLLM2.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/moses/LM/oxlm/LBLLM2.h b/moses/LM/oxlm/LBLLM2.h index 5b6e288a0..4999d92d8 100644 --- a/moses/LM/oxlm/LBLLM2.h +++ b/moses/LM/oxlm/LBLLM2.h @@ -12,10 +12,6 @@ #include "lbl/process_identifier.h" #include "lbl/query_cache.h" -#include "lbl/cdec_lbl_mapper.h" -#include "lbl/cdec_rule_converter.h" -#include "lbl/cdec_state_converter.h" - #include "Mapper.h" namespace Moses @@ -76,6 +72,9 @@ public: ids = mapper->convert(contextFactor); int word = ids.back(); + size_t context_width = m_nGramOrder - 1; + ids.resize(context_width, kUNKNOWN); + double score; score = model.predict(word, ids);