简体   繁体   English

无法在Apertium中为Eng-fra语言对生成模式文件

[英]Unable to generate mode files in apertium for Eng-fra language pair

I am trying to make a standalone language pair using apertium. 我正在尝试使用a制作一个独立的语言对。 I compiled the language package for eng-fra.But the mode files are not generated it shows the following error. 我为eng-fra编译了语言包,但未生成模式文件,它显示以下错误。

apertium-validate-modes modes.xml modes.xml:6: element mode: validity error : No declaration for attribute gendebug of element mode modes.xml:50: element mode: validity error : No declaration for attribute gendebug of element mode Document modes.xml does not validate against /usr/share/apertium/modes.dtd make: *** [modes/fra-eng.mode] Error 3 apertium-validate-modes模式。xml模式。xml:6:元素模式:有效性错误:没有声明元素模式的属性gendebug。xml:50:元素模式:有效性错误:没有声明元素模式的属性gendebug文档模式.xml无法针对/usr/share/apertium/modes.dtd进行验证:*** [modes / fra-eng.mode]错误3

please help me to resolve this...Do I have to create the mode files seperately 请帮助我解决此问题...我是否必须单独创建模式文件

Already answered at https://sourceforge.net/p/apertium/discussion/481031/thread/56daa7e8/ – but for anyone else stumbling upon this error, the solution is to update apertium, see http://wiki.apertium.org/wiki/Install_Apertium_core_using_packaging (although the most recent Debian/Ubuntu version will also work in this case). 已经在https://sourceforge.net/p/apertium/discussion/481031/thread/56daa7e8/上回答了-但对于绊脚石这个错误的其他人,解决方案是更新a,请参阅http://wiki.apertium.org / wiki / Install_Apertium_core_using_packaging (尽管在这种情况下,最新的Debian / Ubuntu版本也可以使用)。

The gendebug attribute was added to modes.xml some years ago. gendebug属性是几年前添加到modes.xml的。 The https://github.com/apertium/apertium-fra-eng/blob/4ecf87a6410a900be87a6d98f80fdd2f93aeb73b/modes.xml validates fine with the current version of apertium. https://github.com/apertium/apertium-fra-eng/blob/4ecf87a6410a900be87a6d98f80fdd2f93aeb73b/modes.xml在当前版本的apertium上可以很好地验证。

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

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