gpt4 book ai didi

machine-learning - Moses(统计机器翻译)mose.ini文件格式的文档?

转载 作者:行者123 更新时间:2023-11-30 08:37:24 25 4
gpt4 key购买 nike

是否有 Moses 的moses.ini 格式的文档?在不带参数的命令行中运行 Moses 会返回可用的功能名称,但不会返回其可用的参数。另外,我看到的手册中并没有指定.ini文件的结构。

最佳答案

主要思想是该文件包含翻译模型将使用的设置。因此,应该在 Moses 功能规范中查找 moses.ini 中的值和选项文档。

以下是我在网上找到的有关 moses.ini 的一些摘录。

Moses Core ,我们有一些细节:

7.6.5 moses.ini
All feature functions are specified in the [feature] section. It should be in the format:
* Feature-name key1=value1 key2=value2 ....
For example, KENLM factor=0 order=3 num-features=1 lazyken=0 path=file.lm.gz

此外,还有关于如何打印 moses.ini 中提到的所有组件的基本统计信息的提示。

Run the script
analyse_moses_model.pl moses.ini
This can be useful to set the order of mapping steps to avoid explosion of translation options or just to check that the model components are as big/detailed as we expect.

Center for Computational Language and EducAtion Research (CLEAR) Wiki,有一个包含一些文档的示例文件:

Parameters

It is recommended to make an .ini file to storage all of your setting.

input-factors
- Using factor model or not
mapping
- To use LM in memory (T) or read the file in hard disk directly (G)
ttable-file
- Indicate the num. of source-factor, num. of target-factor, num of score, and the path to translation table file
lmodel-file
- Indicate the type using for LM (0:SRILM, 1:IRSTLM), using factor number, the order (n-gram) of LM, and the path to language model file

如果还不够的话this page, see "Decoder configuration file" section上还有另外的说明

The sections [ttable-file] and [lmodel-file] contain pointers to the phrase table file and language model file, respectively. You may disregard the numbers on those lines. For the time being, it's enough to know that the last one of the numbers in the language model specification is the order of the n-gram model.

The configuration file also contains some feature weights. Note that the [weight-t] section has 5 weights, one for each feature contained in the phrase table.

The moses.ini file created by the training process will not work with your decoder without modification because it relies on a language model library that is not compiled into our decoder. In order to make it work, open the moses.ini file and find the language model specification in the line immediately after the [lmodel-file] heading. The first number on this line will be 0, which stands for SRILM. Change it into 8 and leave the rest of the line untouched. Then your configuration should work.

关于machine-learning - Moses(统计机器翻译)mose.ini文件格式的文档?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30033707/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com