mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-27 22:14:57 +03:00
c397d2068b
Conflicts: Jamroot mert/Data.cpp mert/Data.h mert/FeatureArray.cpp mert/FeatureArray.h mert/FeatureData.cpp mert/FeatureData.h mert/FeatureStats.cpp mert/FeatureStats.h mert/mert.cpp moses-chart-cmd/src/IOWrapper.h moses-chart-cmd/src/Main.cpp moses-cmd/src/IOWrapper.cpp moses-cmd/src/IOWrapper.h moses-cmd/src/Main.cpp moses/src/GlobalLexicalModel.cpp moses/src/Jamfile moses/src/Parameter.cpp moses/src/PhraseDictionary.cpp moses/src/ScoreIndexManager.h moses/src/TargetPhrase.h regression-testing/tests/phrase.lexicalized-reordering-bin/truth/results.txt regression-testing/tests/phrase.lexicalized-reordering-cn/truth/results.txt regression-testing/tests/phrase.lexicalized-reordering/truth/results.txt regression-testing/tests/phrase.multiple-translation-system-lr/truth/results.txt regression-testing/tests/phrase.show-weights.lex-reorder/truth/results.txt regression-testing/tests/phrase.show-weights/truth/results.txt scripts/ems/experiment.meta scripts/ems/experiment.perl scripts/training/filter-model-given-input.pl scripts/training/mert-moses.pl
130 lines
4.0 KiB
Plaintext
130 lines
4.0 KiB
Plaintext
#BUILDING MOSES
|
|
#
|
|
#PACKAGES
|
|
#Language models (optional):
|
|
#--with-irstlm=/path/to/irstlm
|
|
#--with-srilm=/path/to/srilm See moses/src/LM/Jamfile for more options.
|
|
#--with-randlm=/path/to/randlm
|
|
#KenLM is always compiled.
|
|
#
|
|
#--with-boost=/path/to/boost
|
|
#If Boost is in a non-standard location, specify it here. This directory is
|
|
#expected to contain include and lib or lib64.
|
|
#
|
|
#--with-xmlrpc-c=/path/to/xmlrpc-c for libxmlrpc-c (used by server)
|
|
#Note that, like language models, this is the --prefix where the library was
|
|
#installed, not some executable within the library.
|
|
#
|
|
#--with-giza=/path/to/giza
|
|
#Indicates where binaries GIZA++, snt2cooc.out, and mkcls live.
|
|
#Builds scripts/training/train-model.perl using these paths.
|
|
#
|
|
#Thread-caching malloc (optional):
|
|
#--with-tcmalloc
|
|
#
|
|
#REGRESSION TESTING
|
|
#--with-regtest=/path/to/moses-reg-test-data
|
|
#
|
|
#
|
|
#INSTALLATION
|
|
#--prefix=/path/to/prefix sets the install prefix [dist].
|
|
#--bindir=/path/to/prefix/bin sets the bin directory [PREFIX/bin]
|
|
#--libdir=/path/to/prefix/lib sets the lib directory [PREFIX/lib]
|
|
#--includedir=/path/to/prefix/include installs headers.
|
|
# Does not install if missing. No argument defaults to PREFIX/include .
|
|
#--install-scripts=/path/to/scripts copies scripts into a directory.
|
|
#--git appends the git revision to the prefix directory.
|
|
#
|
|
#
|
|
#BUILD OPTIONS
|
|
# By default, the build is multi-threaded, optimized, and statically linked.
|
|
# Pass these to change the build:
|
|
#
|
|
# threading=single|multi controls threading (default multi)
|
|
#
|
|
# variant=release|debug|profile builds optimized (default), for debug, or for
|
|
# profiling
|
|
#
|
|
# link=static|shared controls linking (default static)
|
|
#
|
|
# debug-symbols=on|off include (default) or exclude debugging
|
|
# information also known as -g
|
|
# --notrace compiles without TRACE macros
|
|
#
|
|
# --enable-boost-pool uses Boost pools for the memory SCFG table
|
|
#
|
|
# --enable-mpi switch on mpi
|
|
#
|
|
#CONTROLLING THE BUILD
|
|
#-a to build from scratch
|
|
#-j$NCPUS to compile in parallel
|
|
#--clean to clean
|
|
|
|
import option ;
|
|
import modules ;
|
|
import path ;
|
|
path-constant TOP : . ;
|
|
include $(TOP)/jam-files/sanity.jam ;
|
|
|
|
boost 103600 ;
|
|
external-lib z ;
|
|
|
|
if [ option.get "with-tcmalloc" : : "yes" ] {
|
|
external-lib tcmalloc ;
|
|
requirements += <library>tcmalloc ;
|
|
}
|
|
|
|
if [ option.get "enable-mpi" : : "yes" ] {
|
|
import mpi ;
|
|
using mpi ;
|
|
requirements += <define>MPI_ENABLE ;
|
|
requirements += <library>mpi ;
|
|
requirements += <library>boost_mpi ;
|
|
requirements += <library>boost_serialization ;
|
|
}
|
|
|
|
requirements += [ option.get "notrace" : <define>TRACE_ENABLE=1 ] ;
|
|
requirements += [ option.get "enable-boost-pool" : : <define>USE_BOOST_POOL ] ;
|
|
|
|
project : default-build
|
|
<threading>multi
|
|
<warnings>on
|
|
<debug-symbols>on
|
|
<variant>release
|
|
<link>static
|
|
;
|
|
|
|
project : requirements
|
|
<threading>multi:<define>WITH_THREADS
|
|
<threading>multi:<library>boost_thread
|
|
<define>_FILE_OFFSET_BITS=64 <define>_LARGE_FILES
|
|
$(requirements)
|
|
;
|
|
|
|
#Add directories here if you want their incidental targets too (i.e. tests).
|
|
build-project lm ;
|
|
build-project util ;
|
|
#Trigger instllation into legacy paths.
|
|
build-project mert ;
|
|
build-project moses-cmd/src ;
|
|
build-project moses-chart-cmd/src ;
|
|
build-project mira ;
|
|
build-project moses/src ;
|
|
#Scripts have their own binaries.
|
|
build-project scripts ;
|
|
#Regression tests (only does anything if --with-regtest is passed)
|
|
build-project regression-testing ;
|
|
|
|
|
|
alias programs : lm//query lm//build_binary moses-chart-cmd/src//moses_chart moses-cmd/src//programs OnDiskPt//CreateOnDisk mert//programs contrib/server//mosesserver misc//programs mira//programs ;
|
|
|
|
install-bin-libs programs ;
|
|
install-headers headers-base : [ glob-tree *.h *.hh : jam-files dist kenlm moses ] : . ;
|
|
install-headers headers-moses : moses/src//headers-to-install : moses/src ;
|
|
|
|
alias install : prefix-bin prefix-lib headers-base headers-moses ;
|
|
|
|
if ! [ option.get "includedir" : : $(prefix)/include ] {
|
|
explicit install headers-base headers-moses ;
|
|
}
|