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/LM
diff options
context:
space:
mode:
authorHieu Hoang <hieuhoang@gmail.com>2015-12-29 23:05:16 +0300
committerHieu Hoang <hieuhoang@gmail.com>2015-12-29 23:05:16 +0300
commitf2c4bb53b2d550bcc5aed13c29dd29bb5c369a3f (patch)
treeb93e3b68cf795cd960b8946f7f2e445a85b74dcb /moses/LM
parentb6f099031cece5106bc2b12b6e5ed94ae1efd221 (diff)
parent11809630ea23a04326a271703dc134089a90016b (diff)
Merge ../mosesdecoder into perf_moses2
Diffstat (limited to 'moses/LM')
-rw-r--r--moses/LM/MaxEntSRI.cpp2
-rw-r--r--moses/LM/NeuralLMWrapper.cpp2
-rw-r--r--moses/LM/RDLM.cpp2
-rw-r--r--moses/LM/Rand.cpp2
-rw-r--r--moses/LM/oxlm/OxLM.cpp2
5 files changed, 5 insertions, 5 deletions
diff --git a/moses/LM/MaxEntSRI.cpp b/moses/LM/MaxEntSRI.cpp
index 18fa4415f..ecf613049 100644
--- a/moses/LM/MaxEntSRI.cpp
+++ b/moses/LM/MaxEntSRI.cpp
@@ -66,7 +66,7 @@ LanguageModelMaxEntSRI::~LanguageModelMaxEntSRI()
delete m_srilmVocab;
}
-void LanguageModelMaxEntSRI::Load(AllOptions const& opts)
+void LanguageModelMaxEntSRI::Load(AllOptions::ptr const& opts)
{
m_srilmVocab = new ::Vocab();
m_srilmModel = new MEModel(*m_srilmVocab, m_nGramOrder);
diff --git a/moses/LM/NeuralLMWrapper.cpp b/moses/LM/NeuralLMWrapper.cpp
index f19eb97c4..634f66e7d 100644
--- a/moses/LM/NeuralLMWrapper.cpp
+++ b/moses/LM/NeuralLMWrapper.cpp
@@ -22,7 +22,7 @@ NeuralLMWrapper::~NeuralLMWrapper()
}
-void NeuralLMWrapper::Load(AllOptions const& opts)
+void NeuralLMWrapper::Load(AllOptions::ptr const& opts)
{
// Set parameters required by ancestor classes
diff --git a/moses/LM/RDLM.cpp b/moses/LM/RDLM.cpp
index 992233923..1da5a71fb 100644
--- a/moses/LM/RDLM.cpp
+++ b/moses/LM/RDLM.cpp
@@ -39,7 +39,7 @@ RDLM::~RDLM()
delete lm_label_base_instance_;
}
-void RDLM::Load(AllOptions const& opts)
+void RDLM::Load(AllOptions::ptr const& opts)
{
lm_head_base_instance_ = new nplm::neuralTM();
diff --git a/moses/LM/Rand.cpp b/moses/LM/Rand.cpp
index 00474deee..da2dbdeb5 100644
--- a/moses/LM/Rand.cpp
+++ b/moses/LM/Rand.cpp
@@ -52,7 +52,7 @@ LanguageModelRandLM::~LanguageModelRandLM()
delete m_lm;
}
-void LanguageModelRandLM::Load(AllOptions const& opts)
+void LanguageModelRandLM::Load(AllOptions::ptr const& opts)
{
cerr << "Loading LanguageModelRandLM..." << endl;
FactorCollection &factorCollection = FactorCollection::Instance();
diff --git a/moses/LM/oxlm/OxLM.cpp b/moses/LM/oxlm/OxLM.cpp
index 963795bf3..789f96dd7 100644
--- a/moses/LM/oxlm/OxLM.cpp
+++ b/moses/LM/oxlm/OxLM.cpp
@@ -70,7 +70,7 @@ void OxLM<Model>::SetParameter(const string& key, const string& value)
}
template<class Model>
-void OxLM<Model>::Load(AllOptions const& opts)
+void OxLM<Model>::Load(AllOptions::ptr const& opts)
{
model.load(m_filePath);