put back #ifdef LM_IRST

This commit is contained in:
Hieu Hoang 2013-05-17 18:24:24 +01:00
parent 11632e298e
commit e800ee999b

View File

@ -56,9 +56,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#include "ScoreComponentCollection.h"
#include "LM/Ken.h"
//#ifdef LM_IRST
#ifdef LM_IRST
#include "LM/IRST.h"
//#endif
#endif
#ifdef HAVE_SYNLM
#include "SyntacticLanguageModel.h"
@ -631,13 +631,13 @@ bool StaticData::LoadData(Parameter *parameter)
vector<float> weights = m_parameter->GetWeights(model->GetScoreProducerDescription());
SetWeights(model, weights);
}
//#ifdef LM_IRST
#ifdef LM_IRST
else if (feature == "IRSTLM") {
LanguageModelIRST *model = new LanguageModelIRST(line);
vector<float> weights = m_parameter->GetWeights(model->GetScoreProducerDescription());
SetWeights(model, weights);
}
//#endif
#endif
else if (feature == "Generation") {
GenerationDictionary *model = new GenerationDictionary(line);
vector<float> weights = m_parameter->GetWeights(model->GetScoreProducerDescription());