Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/moses
diff options
context:
space:
mode:
authorLane Schwartz <dowobeha@gmail.com>2017-01-06 00:53:04 +0300
committerLane Schwartz <dowobeha@gmail.com>2017-01-06 00:53:04 +0300
commit171edca393b3887de2fc433a5cf19960295e1cc0 (patch)
tree140bfa44324c4192cfeead954194c807d8411133 /moses
parent1f744ecd9bdb2bb21034fc497773228135fc2801 (diff)
parent138ebf1f1e154cf84c74a2ba0a3db06ebea11b2b (diff)
Merge
Diffstat (limited to 'moses')
-rw-r--r--moses/LM/InMemoryPerSentenceOnDemandLM.cpp8
-rw-r--r--moses/LM/InMemoryPerSentenceOnDemandLM.h4
2 files changed, 7 insertions, 5 deletions
diff --git a/moses/LM/InMemoryPerSentenceOnDemandLM.cpp b/moses/LM/InMemoryPerSentenceOnDemandLM.cpp
index 87676f12d..82c198ca1 100644
--- a/moses/LM/InMemoryPerSentenceOnDemandLM.cpp
+++ b/moses/LM/InMemoryPerSentenceOnDemandLM.cpp
@@ -17,7 +17,7 @@ using namespace std;
namespace Moses
{
- InMemoryPerSentenceOnDemandLM::InMemoryPerSentenceOnDemandLM(const std::string &line) : LanguageModel(line), m_factorType(0)
+InMemoryPerSentenceOnDemandLM::InMemoryPerSentenceOnDemandLM(const std::string &line) : LanguageModel(line), initialized(false)
{
ReadParameters();
}
@@ -26,7 +26,8 @@ InMemoryPerSentenceOnDemandLM::~InMemoryPerSentenceOnDemandLM()
{
}
-void InMemoryPerSentenceOnDemandLM::InitializeForInput(ttasksptr const& ttask) {
+void InMemoryPerSentenceOnDemandLM::InitializeForInput(ttasksptr const& ttask)
+{
// The context scope object for this translation task
// contains a map of translation task-specific data
@@ -66,7 +67,8 @@ void InMemoryPerSentenceOnDemandLM::InitializeForInput(ttasksptr const& ttask) {
}
-LanguageModelKen<lm::ngram::ProbingModel>& InMemoryPerSentenceOnDemandLM::GetPerThreadLM() const {
+LanguageModelKen<lm::ngram::ProbingModel>& InMemoryPerSentenceOnDemandLM::GetPerThreadLM() const
+{
LanguageModelKen<lm::ngram::ProbingModel> *lm;
lm = m_perThreadLM.get();
diff --git a/moses/LM/InMemoryPerSentenceOnDemandLM.h b/moses/LM/InMemoryPerSentenceOnDemandLM.h
index 9a2e4123e..eeaebbe17 100644
--- a/moses/LM/InMemoryPerSentenceOnDemandLM.h
+++ b/moses/LM/InMemoryPerSentenceOnDemandLM.h
@@ -102,7 +102,7 @@ public:
UTIL_THROW(util::Exception, "WARNING: InMemoryPerSentenceOnDemand::sync called prior to being initialized");
}
}
-
+
virtual void SetFFStateIdx(int state_idx) {
if (isInitialized()) {
GetPerThreadLM().SetFFStateIdx(state_idx);
@@ -126,7 +126,7 @@ public:
UTIL_THROW(util::Exception, "WARNING: InMemoryPerSentenceOnDemand::ReportHistoryOrder called prior to being initialized");
}
}
-
+
virtual void EvaluateInIsolation(const Phrase &source
, const TargetPhrase &targetPhrase
, ScoreComponentCollection &scoreBreakdown