compiled DALM with eclipse. bjam problems still

This commit is contained in:
Hieu Hoang 2013-11-11 17:19:44 +00:00
parent 17f1bf7728
commit 8c9c81a14e
2 changed files with 18 additions and 2 deletions

View File

@ -77,8 +77,14 @@ void LanguageModelDALM::Load()
////////////////
// Preparing a logger object.
DALM::Logger logger(stderr);
logger.setLevel(DALM::LOGGER_INFO);
m_logger = new DALM::Logger(stderr);
m_logger->setLevel(DALM::LOGGER_INFO);
// Load the vocabulary file.
m_vocab = new DALM::Vocabulary(words, *m_logger);
// Load the language model.
m_lm = new DALM::LM(model, *m_vocab, *m_logger);
}

View File

@ -4,6 +4,13 @@
#include <vector>
#include "SingleFactor.h"
namespace DALM
{
class Logger;
class Vocabulary;
class LM;
}
namespace Moses
{
@ -11,6 +18,9 @@ class LanguageModelDALM : public LanguageModelSingleFactor
{
protected:
std::string m_inifile;
DALM::Logger *m_logger;
DALM::Vocabulary *m_vocab;
DALM::LM *m_lm;
public:
LanguageModelDALM(const std::string &line);