fixes parameter mismatch in LM::Load

This commit is contained in:
michaelhutt 2015-12-23 13:31:49 -05:00
parent f3cdad40da
commit cf5d093c4f
5 changed files with 5 additions and 5 deletions

View File

@ -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);

View File

@ -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

View File

@ -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();

View File

@ -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();

View File

@ -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);