mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-27 22:14:57 +03:00
compiled DALM with eclipse. bjam problems still
This commit is contained in:
parent
17f1bf7728
commit
8c9c81a14e
@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user