mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-26 13:23:25 +03:00
Move language model ifdefs to Factory.cpp
This commit is contained in:
parent
5d9bdaa93a
commit
1192e6f2b0
@ -26,6 +26,37 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
#include "TypeDef.h"
|
||||
#include "FactorCollection.h"
|
||||
|
||||
/////////////////////////////////////////////////
|
||||
// for those using autoconf/automake
|
||||
#if HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
|
||||
#define LM_REMOTE 1
|
||||
# ifdef HAVE_SRILM
|
||||
# define LM_SRI 1
|
||||
# else
|
||||
# undef LM_SRI
|
||||
# endif
|
||||
|
||||
# ifdef HAVE_IRSTLM
|
||||
# define LM_IRST 1
|
||||
# endif
|
||||
|
||||
# ifdef HAVE_RANDLM
|
||||
# define LM_RAND 1
|
||||
# endif
|
||||
|
||||
# ifdef HAVE_ORLM
|
||||
# define LM_ORLM 1
|
||||
# endif
|
||||
|
||||
# define LM_KEN 1
|
||||
|
||||
# ifdef HAVE_DMAPLM
|
||||
# define LM_DMAP
|
||||
# endif
|
||||
#endif
|
||||
|
||||
// include appropriate header
|
||||
#ifdef LM_SRI
|
||||
# include "LM/SRI.h"
|
||||
|
@ -72,36 +72,6 @@ const size_t DEFAULT_VERBOSE_LEVEL = 1;
|
||||
// for those using autoconf/automake
|
||||
#if HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
|
||||
//#define TRACE_ENABLE 1 // REMOVE after we figure this out
|
||||
|
||||
#define LM_INTERNAL 1
|
||||
#define LM_REMOTE 1
|
||||
|
||||
# ifdef HAVE_SRILM
|
||||
# define LM_SRI 1
|
||||
# else
|
||||
# undef LM_SRI
|
||||
# endif
|
||||
|
||||
# ifdef HAVE_IRSTLM
|
||||
# define LM_IRST 1
|
||||
# endif
|
||||
|
||||
# ifdef HAVE_RANDLM
|
||||
# define LM_RAND 1
|
||||
# endif
|
||||
|
||||
# ifdef HAVE_ORLM
|
||||
# define LM_ORLM 1
|
||||
# endif
|
||||
|
||||
# define LM_KEN 1
|
||||
|
||||
# ifdef HAVE_DMAPLM
|
||||
# define LM_DMAP
|
||||
# endif
|
||||
|
||||
#endif
|
||||
/////////////////////////////////////////////////
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user