Hi Hakan
i think the <wall> tags have been implemented recently by philipp for
the phrase-based model. the hierarchical model doesn't use them. I'm
surprised it segfaults but avoid <wall> tag in hierarchical models for now.
On 18/08/2010 15:25, Hakan Ari wrote:
Hi Everyone,
I have a question regarding to the use of xml tags (i.e. <wall/> or
tags with translation attribute). Is it possible to use such tags with
a tree based model? I have created a hierarchical phrase based model
from English to German and some of the source sentences are tagged
with <wall/> tags and xml-input tags with translation attribute.
During the decoding, for the <wall> tag I got the following error message:
ERROR: tag wall must span at least one word
With the xml-input tags, I got either segmentation fault or the
content of the xml tag did not get translated as given in the
translation attribute.
I have checked the code a little bit to find the source of the problem
and I have realized that the problem occurs on the
ProcessAndStripXMLTags method of the TreeInput class which is actually
commented in a way as if it handles these tags but it doesn't. Then I
realized may be I can change the inputType parameter (which is 3 by
default in the moses.ini of the tree-based model) to SentenceInput (0)
to use Sentence class instead of TreeInput however I still couldn't
get the correct translation for the xml-input tags. So my question is,
if currenty there is no support for these tags, is there a plan to
provide this support in the future? Or is there any technical
impossibility to implement it for tree based models?
I would appreciate if you can shed some light
Thanks
Hakan Ari
_______________________________________________
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