1、第一步先下载boost库.
libboost-all-dev
2、
获取 moses
git clone git://github.com/moses-smt/mosesdecoder.git
3.进入moses文件
cd ~/mosesdecoder ./bjam --help
./bjam -j4
我是四核的。你们看着办
官网上说的有很多种。不过听Max先生说KenLM是最新的比较好。所以改用最新的了现在。
Language models
In addition to KenLM and ORLM (which are always compiled):
- --with-irstlm=/path/to/irstlm
- Path to IRSTLM installation
- --with-randlm=/path/to/randlm
- Path to RandLM installation
- --with-srilm=/path/to/srilm
- Path to SRILM installation.
If your SRILM install is non-standard, use these options:
- --with-srilm-dynamic
- Link against srilm.so.
- --with-srilm-arch=arch
- Override the arch setting given by /path/to/srilm/sbin/machine-type
浙公网安备 33010602011771号