mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-20 15:48:05 +03:00
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:
parent
375ed9b7fe
commit
cac7600662
@ -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}])])
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user