diff options
author | michaelhutt <michael.hutt@gmail.com> | 2015-12-23 21:31:49 +0300 |
---|---|---|
committer | michaelhutt <michael.hutt@gmail.com> | 2015-12-23 21:31:49 +0300 |
commit | cf5d093c4f988fc2ba03d8f68da251dd6016d33d (patch) | |
tree | 36cf96fd85bb6af8585addc2cf9bac80fe37bbb5 /moses/LM | |
parent | f3cdad40da622e567bb8348069b0d925166c8dd9 (diff) |
fixes parameter mismatch in LM::Load
Diffstat (limited to 'moses/LM')
-rw-r--r-- | moses/LM/MaxEntSRI.cpp | 2 | ||||
-rw-r--r-- | moses/LM/NeuralLMWrapper.cpp | 2 | ||||
-rw-r--r-- | moses/LM/RDLM.cpp | 2 | ||||
-rw-r--r-- | moses/LM/Rand.cpp | 2 | ||||
-rw-r--r-- | moses/LM/oxlm/OxLM.cpp | 2 |
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); |