mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 11:25:40 +03:00
Syntactic LM can now be enabled by passing --with-synlm to configure. The path to the ModelBlocks parser is now assumed to be synlm/hhmm, and no longer needs to be explicitly specified.
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@3994 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
parent
3135cf9e3f
commit
a040227376
@ -60,7 +60,7 @@ AC_ARG_WITH(randlm,
|
||||
)
|
||||
|
||||
AC_ARG_WITH(synlm,
|
||||
[AC_HELP_STRING([--with-synlm=PATH], [(optional) path to syntactic language model parser])],
|
||||
[AC_HELP_STRING([--with-synlm], [(optional) Include syntactic language model parser; default is no])],
|
||||
[with_synlm=$withval],
|
||||
[with_synlm=no]
|
||||
)
|
||||
@ -283,13 +283,14 @@ fi
|
||||
if test "x$with_synlm" != 'xno'
|
||||
then
|
||||
SAVE_CPPFLAGS="$CPPFLAGS"
|
||||
CPPFLAGS="$CPPFLAGS -DWITH_THREADS -I${with_synlm}/rvtl/include -I${with_synlm}/wsjparse/include -lm"
|
||||
CPPFLAGS="$CPPFLAGS -DWITH_THREADS -I${PWD}/synlm/hhmm/rvtl/include -I${PWD}/synlm/hhmm/wsjparse/include -lm"
|
||||
|
||||
|
||||
|
||||
|
||||
AC_CHECK_HEADERS(nl-cpt.h,
|
||||
[AC_DEFINE([HAVE_SYNLM], [], [flag for Syntactic Parser])])
|
||||
[AC_DEFINE([HAVE_SYNLM], [], [flag for Syntactic Parser])],
|
||||
[AC_MSG_ERROR([Cannot find SYNLM in ${PWD}/synlm/hhmm])])
|
||||
|
||||
AM_CONDITIONAL([SYN_LM], true)
|
||||
|
||||
|
@ -55,7 +55,7 @@ $LIBTOOLIZE || die "libtoolize failed"
|
||||
|
||||
echo
|
||||
echo "You should now be able to configure and build:"
|
||||
echo " ./configure [--with-srilm=/path/to/srilm] [--with-irstlm=/path/to/irstlm] [--with-randlm=/path/to/randlm] [--without-kenlm] [--with-synlm=/path/to/modelblocks] [--with-xmlrpc-c=/path/to/xmlrpc-c-config]"
|
||||
echo " ./configure [--with-srilm=/path/to/srilm] [--with-irstlm=/path/to/irstlm] [--with-randlm=/path/to/randlm] [--without-kenlm] [--with-synlm] [--with-xmlrpc-c=/path/to/xmlrpc-c-config]"
|
||||
echo " make -j 4"
|
||||
echo
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user