Red Hat Linux下安装使用双语对照工具champollion
2015-01-20 10:29
531 查看
受人所托,测试一下champollion的安装和使用,我搜索了半天,只找到一篇有关的文章,为了方便,我便把自己安装的过程贴出来,以供参考:
我下的是champollion-1.2,在虚拟机中安装了Red Hat Linux 6 64位。
1.首先,将champollion-1.2.tgz解压缩到“/home/[你的用户名]”目录下。解压缩可以参考这个http://blog.csdn.net/zhenwenxian/article/details/4400404;或者你要是跟我一样安装了图形界面,直接“右击”压缩包,选择“解压到”进行解压。
2.解压好以后,打开命令终端,输入:su,输入:[密码];
3.配置CTK环境变量,值就是你解压后的文件路径。输入命令:export CTK=/home/[你的用户名]/champollion-1.2;
4.定位到champollion目录中。输入命令:cd /home/[你的用户名]/champollion-1.2;
5.测试安装。输入命令:./test_installation,这时就差不多了,它会提示“The installation is good.”,或者告诉你安装不成功的原因。
安装好以后,就要开始使用了。命令格式为:
英文中文对照:your_CTK_path/bin/champollion.EC_GB <english sentence file> <chinese sentence file> <alignment file>或者your_CTK_path/bin/champollion.EC_utf8 <english sentence file> <chinese sentence
file> <alignment file>
英文Arabic对照:your_CTK_path/bin/champollion.EA <english sentence file> <arabic sentence file> <alignment file>
英文Hindi对照:your_CTK_path/bin/champollion.EH <english sentence file> <hindi sentence file> <alignment file>
另外champollion.generic可以和未知语言对照:your_CTK_path/bin/champollion.generic <LX sentence file>
<LY sentence file> <alignment file> <dictionary>
用它给的demo为例。输入命令:/home/[你的用户名]/champollion-1.2/bin/champollion.EC_GB ./demo/CPP20000210000021.e.st ./demo/CPP20000210000021.c.st ./demo/CPP20000210000021.align。你将会看到提示:
Tokenizing English ...
Tokenizing Chinese ...
Aligning Sentences ...
Reading X stop list... done.
Reading seed translation lexicon... done.
Number of entries: 4807
Loading axis...done.
Number of sentences: 31
Loading axis...done.
Number of sentences: 25
Window size: 10
Aligning Sentences ... done.
然后,打开./demo/CPP20000210000021.align便可以看到对照结果了。
我下的是champollion-1.2,在虚拟机中安装了Red Hat Linux 6 64位。
1.首先,将champollion-1.2.tgz解压缩到“/home/[你的用户名]”目录下。解压缩可以参考这个http://blog.csdn.net/zhenwenxian/article/details/4400404;或者你要是跟我一样安装了图形界面,直接“右击”压缩包,选择“解压到”进行解压。
2.解压好以后,打开命令终端,输入:su,输入:[密码];
3.配置CTK环境变量,值就是你解压后的文件路径。输入命令:export CTK=/home/[你的用户名]/champollion-1.2;
4.定位到champollion目录中。输入命令:cd /home/[你的用户名]/champollion-1.2;
5.测试安装。输入命令:./test_installation,这时就差不多了,它会提示“The installation is good.”,或者告诉你安装不成功的原因。
安装好以后,就要开始使用了。命令格式为:
英文中文对照:your_CTK_path/bin/champollion.EC_GB <english sentence file> <chinese sentence file> <alignment file>或者your_CTK_path/bin/champollion.EC_utf8 <english sentence file> <chinese sentence
file> <alignment file>
英文Arabic对照:your_CTK_path/bin/champollion.EA <english sentence file> <arabic sentence file> <alignment file>
英文Hindi对照:your_CTK_path/bin/champollion.EH <english sentence file> <hindi sentence file> <alignment file>
另外champollion.generic可以和未知语言对照:your_CTK_path/bin/champollion.generic <LX sentence file>
<LY sentence file> <alignment file> <dictionary>
用它给的demo为例。输入命令:/home/[你的用户名]/champollion-1.2/bin/champollion.EC_GB ./demo/CPP20000210000021.e.st ./demo/CPP20000210000021.c.st ./demo/CPP20000210000021.align。你将会看到提示:
Tokenizing English ...
Tokenizing Chinese ...
Aligning Sentences ...
Reading X stop list... done.
Reading seed translation lexicon... done.
Number of entries: 4807
Loading axis...done.
Number of sentences: 31
Loading axis...done.
Number of sentences: 25
Window size: 10
Aligning Sentences ... done.
然后,打开./demo/CPP20000210000021.align便可以看到对照结果了。
相关文章推荐
- Red Hat Linux使用yum 安装报 关于Public key for *.rpm is not installed 的解决方法
- Red Hat Linux 7.0安装使用手记(六则)
- 使用U盘安装Windows7与Red Hat Enterprise Linux 6双系统攻略
- Git在Red Hat Enterprise Linux Server release 5.1上的安装(android源码下载必备工具)
- mac系统下使用Vmwear安装red hat linux
- Red Hat Enterprise Linux 5中安装交叉编译工具arm-linux-gcc-4.3.2.tgz
- 在Red Hat Enterprise Linux 5中安装交叉编译工具arm-linux-gcc-4.3.2.tgz
- Red Hat Enterprise Linux 5中安装交叉编译工具arm-linux-gcc-4.3.2.tgz
- Red Hat Linux使用yum 安装报 关于Public key for *.rpm is not installed 的解决方法
- RedHat Enterprise Linux 6.4使用yum安装出现This system is not registered to Red Hat Subscription Management
- 使用VM虚拟机安装配置Red Hat Enterprise Linux6.5 64位
- Red Hat Enterprise Linux 5中安装gcc编译器工具集
- 红帽子Red Hat Linux 9光盘启动安装过程
- SimpleScalar的安装方法(Red Hat Linux 9.0,gcc3.2.2环境) 推荐
- Red Hat Enterprise Linux AS 安装 Oracle 9i过程整理
- 在 Red Hat Linux 9 上安装 Oracle9i Database
- 在Red Hat Enterprise Linux 3 U7下安装MYSQL 5.0.26
- 在VMware 4.5.2.build 8848上安装red hat linux 9 过程及心得
- Linux下的sniffer工具--Tcpdump的安装和使用
- Linux下Oracle的安装(Red Hat Linux8.0+Oracle8.17)