mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 11:25:40 +03:00
Testing git Add 'both' option for d-reo features, in addition to prev and curr Start to implement gibbler discrim reordering feature in terms of Moses one. Pause while I try for a generic single phrase stateful. Creating new feature to wrap some Moses features Minor progress in impl of single state feature. Comment change. Create a new subclass of StatefulFeatureFunction, which does things the right way, ie by taking a TranslationOption instead of a Hypo. Implementation of SingleStateFeature This can be used to wrap any Moses feature function whose state just depends on the previous hypothesis, in particular it is used for the reordering features. Ignore ltmain.sh Don't track this file touch ltmain.sh git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/branches/samplerank@4120 1f5c12ca-751b-0410-a591-d2e778427230
61 lines
1.2 KiB
Bash
Executable File
61 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# NOTE:
|
|
# Versions 1.9 (or higher) of aclocal and automake are required.
|
|
|
|
# For Mac OSX users:
|
|
# Standard distribution usually includes versions 1.6.
|
|
# Get versions 1.9 or higher
|
|
# Set the following variable to the correct paths
|
|
#ACLOCAL="/path/to/aclocal-1.9"
|
|
#AUTOMAKE="/path/to/automake-1.9"
|
|
|
|
function die () {
|
|
echo "$@" >&2
|
|
exit 1
|
|
}
|
|
|
|
if [ -z "$ACLOCAL" ]
|
|
then
|
|
ACLOCAL=`which aclocal`
|
|
fi
|
|
|
|
if [ -z "$AUTOMAKE" ]
|
|
then
|
|
AUTOMAKE=`which automake`
|
|
fi
|
|
|
|
if [ -z "$AUTOCONF" ]
|
|
then
|
|
AUTOCONF=`which autoconf`
|
|
fi
|
|
|
|
if [ -z "$LIBTOOLIZE" ]
|
|
then
|
|
LIBTOOLIZE=`which libtoolize`
|
|
|
|
if [ -z "$LIBTOOLIZE" ]
|
|
then
|
|
LIBTOOLIZE=`which glibtoolize`
|
|
fi
|
|
fi
|
|
|
|
touch ltmain.sh
|
|
|
|
echo "Calling $ACLOCAL..."
|
|
$ACLOCAL -I m4 || die "aclocal failed"
|
|
echo "Calling $AUTOCONF..."
|
|
$AUTOCONF || die "autoconf failed"
|
|
echo "Calling $AUTOMAKE..."
|
|
$AUTOMAKE || die "automake failed"
|
|
echo "Calling $LIBTOOLIZE"
|
|
$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-xmlrpc-c=/path/to/xmlrpc-c-config]"
|
|
echo " make -j 4"
|
|
echo
|
|
|