简体   繁体   English

如何在apertium中引导语言对?

[英]How to boot-strap a language pair in apertium?

I was following all steps for bootstrapping of existing language pair here http://wiki.apertium.org/wiki/How_to_bootstrap_a_new_pair and after following steps when i'm giving command in ubunto terminal 我在这里http://wiki.apertium.org/wiki/How_to_bootstrap_a_new_pair时执行所有引导现有语言对的步骤,并在我在ubunto终端中发出命令时遵循以下步骤
echo house | apertium -d . eng-spa
it replies me correct answer 它回答了我正确的答案
casa
but when gave command 但是当命令
echo casa | apertium -d . spa-eng
it gave me 它给了我
terminate called after throwing an instance of 'DeserialisationException' what(): can't deserialise 1 byte integer type: can't deserialise byte Aborted (core dumped)
How can i overcome this issue? 我该如何克服这个问题?

The typical way of debugging these things is to look at the file modes/spa-eng.mode and run the pipeline one step at a time until you get the crash. 调试这些事情的典型方法是查看文件modes/spa-eng.mode并一次一步运行管道,直到崩溃为止。

If the file contained lt-proc spa-eng.automorf.bin | apertium-tagger -g spa-eng.prob | … 如果文件包含lt-proc spa-eng.automorf.bin | apertium-tagger -g spa-eng.prob | … lt-proc spa-eng.automorf.bin | apertium-tagger -g spa-eng.prob | … lt-proc spa-eng.automorf.bin | apertium-tagger -g spa-eng.prob | … and so on, I would first try lt-proc spa-eng.automorf.bin | apertium-tagger -g spa-eng.prob | …依此类推,我先尝试

echo casa | lt-proc spa-eng.automorf.bin

then 然后

echo casa | lt-proc spa-eng.automorf.bin | apertium-tagger -g spa-eng.prob 

etc. until I found the crash. 直到发现崩溃。

There might be a $2 as an argument to one of the programs in that file – if so, replace that with -g . 该文件中的某个程序可能有一个$2作为参数–如果是,请将其替换为-g

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM