Make --with-kenlm=$PWD/kenlm compile mine instead of IRST.

git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@3574 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
heafield 2010-09-27 15:07:28 +00:00
parent 375ed9b7fe
commit cac7600662
2 changed files with 3 additions and 7 deletions

View File

@ -176,7 +176,7 @@ then
SAVE_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS -I${with_kenlm}/lm"
AC_CHECK_HEADER(n_gram.h,
AC_CHECK_HEADER(ngram.hh,
[AC_DEFINE([HAVE_KENLM], [], [flag for KENLM])],
[AC_MSG_ERROR([Cannot find KEN-LM in ${with_kenlm}])])

View File

@ -23,11 +23,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#include <limits>
#include <iostream>
#include <fstream>
#include "dictionary.h"
#include "n_gram.h"
#include "lmtable.h"
#include "lmmacro.h"
#include "ngram.hh"
#include "LanguageModelKen.h"
#include "TypeDef.h"
@ -43,7 +39,7 @@ namespace Moses
{
LanguageModelKen::LanguageModelKen(bool registerScore, ScoreIndexManager &scoreIndexManager, int dub)
:LanguageModelSingleFactor(registerScore, scoreIndexManager)
:LanguageModelSingleFactor(registerScore, scoreIndexManager), m_ngram(NULL)
{
}