GIZA++双语介绍

GIZA++双语介绍
?GIZA++双语介绍:
  GIZA++ is a freelyavailable implementation of the IBM Models. We need it as a initial step to establish word alignments. Our word alignments are taken from the intersection of bidirectional runs of GIZA++ plus some additional alignment points from the union of the two runs.

  Running GIZA++ is the most time consuming step in the training process. It also requires a lot of memory (1-2 GB RAM is common for large parallel corpora).

  Giza++是从双语句对的两个方向进行迭代学习的,模型训练的绝大多数时间都被这两个方向的迭代训练占去了,所以,Moses提供了第一种简单的解决办法:并行训练(Training in parallel):

  在训练时加上 –parallel选项,这样训练脚本将被fork,Giza++的两个方向的训练将作为独立的进程。这是一台多处理器机器上的最好选择。

  Using the –parallel option will fork the script and run the two directions of GIZA as independent processes. This is the best choice on a multi-processor machine.

  如果你想在单处理器上使用并行运行两个Giza,可以使用下面的方法(我觉得单处理器上没必要使用这个方法,即使使用了效果也应该和正常的方法一样,时间节省效果不明显):

  First you start training the usual way with the additional switches –last-step 2 –direction 1, which runs the data perparation and one direction of GIZA++ training.When the GIZA++ step started, start a second training run with the switches –first-step 2 –direction 2. This runs the second GIZA++ run in parallel, and then continues the rest of the model training. (Beware of race conditions! The second GIZA might finish earlier than the first one to training step 3 might start too early!)

  Moses本身提供的方法可以有效利用2核处理器,但是对于更多核的处理器机器,譬如我的机器是4核cpu的,通过观察发现,训练过程中任何时刻,只 有两个处理器的使用率是百分百,其他两个cpu基本闲置。对于闲置的cpu,不用似乎是一种浪费,不过这个问题已经有了解决: Mgiza++。

  MGiza++是在Giza++基础上扩充的一中多线程Giza++工具,描述如下:

  Multi Thread GIZA++ is an extension to GIZA++ word aligning tool. It can perform much faster training than origin GIZA++ if you have more than one CPUs, in addition it fixed some bugs in GIZA, and the final aligning perplexity is generally lower than original GIZA++.

  freely [′fri:li] ad.自由地;慷慨地 (初中英语单词)available [?′veil?b?l] a.可用的;有效的 (初中英语单词)additional [?′din?l] a.附加的,额外的 (初中英语单词)parallel [′p?r?lel] a.平行的 n.平行线 (初中英语单词)origin [′?rid?in] n.起源;由来;出身 (初中英语单词)addition [?′din] n.加;加法;附加物 (初中英语单词)initial [i′nil] a.最初的 n.首字母 (高中英语单词)extension [ik′stenn] n.延长;扩展;延期 (高中英语单词)perplexity [p?′pleksiti] n.困惑;为难;纷乱 (英语四级单词)script [skript] n.笔迹;手稿;剧本 (英语六级单词)

原创文章,作者:白, 小雪,如若转载,请注明出处:https://www.tanglaohu.cn/8346.html

声明:本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,邮箱:[email protected] 我们会及时删除。

赞 (0)
白, 小雪的头像白, 小雪作者
上一篇 2024年2月28日
下一篇 2024年2月28日

相关推荐

  • 军考英语词汇

    ?军考英语词汇:  反复反复反复出现在句中~~~ 看你怎么考单词咯~~如果就是 中文摆在那写英文 那就没什么办法了~~ 可以把单词放在句子里考啊 表面可以不是在考单词 可以像完成句…

    2024年2月24日
    35600
  • ref是什么意思

    ?ref是什么意思:  摘要   ref指的是裁判,英音是[ref],美音[ref]。复数可以直接加s,列句:女士先生们,裁判已经停止了数秒。Ladies and gentleme…

    2024年8月15日
    22000
  • 来看看没关系用英语怎么说

    ?来看看没关系用英语怎么说:  没关系,这种话即是他人对你表达谢谢之类的话,你会答复的一种,这是很考究的。不要紧也是礼貌用语中的一种,咱们咱们也需求掌握住,不仅仅是中文要掌握住,英…

    2024年8月15日
    18600
  • 帝阁的英文_帝阁的拼音(读音)_意思

    ?帝阁的英文_帝阁的拼音(读音)_意思:  帝阁的英文_帝阁的拼音(读音)_意思   帝阁的拼音,读音,繁体,注音,火星文,平调拼音   帝阁的拼音   dì gé   帝阁的读音…

    2024年9月13日
    26300
  • Swear It Again

    ?Swear It Again:  Swear It Again   Shane:   I wanna know   Who ever told you I was letting…

    2024年9月23日
    20600
  • 剑桥少儿英语词汇表

    ?剑桥少儿英语词汇表:  在买剑桥预备级的时候,就给带了词汇表啊!   剑桥少儿英语考级要求:   1.剑桥少儿英语考试只向第一语言为非英语的考生开放。   2.剑桥少儿英语考试对…

    2024年9月7日
    21500
  • 不幸的用英语怎么说

    ?不幸的用英语怎么说:  不幸的用英语怎么说:   一、不幸的英语:unlucky   二、读音   英[?n?l?ki] ? ?美[?n?l?ki]   三、释义   adj.不…

    2024年2月23日
    27100
  • 化涂的英文_化涂的拼音(读音)_意思

    ?化涂的英文_化涂的拼音(读音)_意思:  化涂的英文_化涂的拼音(读音)_意思   化涂的拼音,读音,繁体,注音,火星文,平调拼音   化涂的拼音   huà tú   化涂的读…

    2024年9月21日
    23500
  • 几乎所有化妆品的英文词汇!你值得拥有(收藏贴)

    ?几乎化妆品的英文词汇!你值得拥有(收藏贴):  关于各类化妆品的英文表达,以后出国买买买的时候再也不用发愁啦!妹子们请认真研读,感兴趣的男朋友们也要多了解一下哦。   1 、fa…

    2024年10月1日
    23700
  • 100用英语怎么说

    ?100用英语怎么说:  100用英语怎么说 是:hundred英[?h?ndr?d]美[?h?ndr?d]   num.一百;许多;100到999间的数目;某个世纪的年代   n…

    2024年3月2日
    23900

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注