使用Moses搭建一个机器翻译系统及实验记录

一. 搭建实验环境:

ubuntu系统可以直接下载安装deb包即可,需要安装的deb包有Srilm, GIZA++, mkcls以及从   http://www.statmt.org/wmt08/scripts.tgz 上获得的一些脚本文件。如果不是ubuntu系统的话,需要下载这些工具的源代码进行编译安装。

 

下面简述使用源代码编译的方法搭建环境中的步骤,直接使用deb安装的可以跳过:

1. 安装Srilm:

下载Srilm源码文件,解压。http://www.speech.sri.com/projects/srilm/download.html

首先,检查Srilm的依赖包,这些依赖包包括:

 1 A template-capable ANSI-C/C++ compiler, gcc version 3.4.3 or higher.

  2 GNU make, to control compilation and installation.

  3 GNU gawk, required for many of the utility scripts.

  4 GNU gzip to unpack the distribution, and to allow SRILM programs to    handle “.Z” and “.gz” compressed datafiles (highly recommended).

  5 bzip2 to handle “.bz2″ compressed files (optional).

  6 p7zip to handle “7-zip” compressed files (optional).

   7 The Tcl embeddable scripting language library (only required for some of the test execu tables).

  8 csh  Unix shell

      如果以上工具没有全部安装的话, srilm 编译肯定无法通过。使用 which 命令查找以上工具是否安装,例如:

  which make, 若得到的输出为 /usr/bin/make ,表明系统已经安装好了 GNU make 。没有的话需要apt-get install ***(相应的包)。

 

其次,修改Makefile和common/Makefile.machine.i686文件:

  1 )修改 Makefile

  • 0
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值