the <ne> tag is for placeholders. Use another tag, eg <trans>

On 21/01/15 08:58, Li Xiang wrote:
Hi all,

I am trying to use the xml marker function. But I can not get the xml translation options. According to http://www.statmt.org/moses/?n=Moses.AdvancedFeatures#ntoc33, I use “ne” as xml label. And I use the following command:

echo 'das ist <ne translation="a cute place">ein kleines haus</ne>' | moses 
-xml-input exclusive -f moses.ini

The error is

ERROR: Placeholder must only span 1 word: das ist <ne translation="a cute place">ein kleines haus</ne> Unable to parse XML in line: das ist <ne translation="a cute place">ein kleines haus</ne> Exception: Unable to parse XML in line: das ist <ne translation="a cute place">ein kleines haus</ne>

I notice that “The words have to be surrounded by tags, such as |<np...>| and |</np>|. The name of the tags can be chosen freely.” in the tutorial.

But I replace “ne” with “np”. I can get the translation.

I think it is a bug. But I can not find the source file. Does anyone tell me where source file is or explain the reason ?




_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support

_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to