add NeuralLM

This commit is contained in:
Hieu Hoang 2013-10-28 23:34:50 +00:00
parent 37896ed854
commit 518a766ed2
2 changed files with 3 additions and 12 deletions

View File

@ -22,18 +22,10 @@ NeuralLMWrapper::~NeuralLMWrapper()
}
bool NeuralLMWrapper::Load(const std::string &filePath, FactorType factorType, size_t nGramOrder)
void NeuralLMWrapper::Load()
{
TRACE_ERR("Loading NeuralLM " << filePath << endl);
// Store parameters
m_nGramOrder = nGramOrder;
m_filePath = filePath;
m_factorType = factorType;
if (factorType == NOT_FOUND) {
m_factorType = 0;
}
TRACE_ERR("Loading NeuralLM " << m_filePath << endl);
// Set parameters required by ancestor classes
FactorCollection &factorCollection = FactorCollection::Instance();
@ -46,7 +38,6 @@ bool NeuralLMWrapper::Load(const std::string &filePath, FactorType factorType, s
m_neuralLM->read(m_filePath);
m_neuralLM->set_log_base(10);
return true;
//TODO: Implement this
}

View File

@ -23,7 +23,7 @@ public:
virtual LMResult GetValue(const std::vector<const Word*> &contextFactor, State* finalState = 0) const;
virtual bool Load(const std::string &filePath, FactorType factorType, size_t nGramOrder);
virtual void Load();
};