it's very easy, i had thought i done it already but maybe it's dropped out.
The placeholder feature just tacks the translation on at the very end, just before outputting the translation. Run it in a debugger to see where it segfault and change that part of the code Hieu Hoang http://www.hoang.co.uk/hieu On 23 June 2016 at 14:29, Vito Mandorino <vito.mandor...@linguacustodia.com> wrote: > Dear all, > > to add up to the previous messages, I have tried the current version of > Moses from Github and found that hierarchical models do work fine with > mosesserver now. Placeholders are still an issue though: the commands > > /bin/mosesserver -f moses.ini -xml-input inclusive -placeholder-factor 1 > /bin/moses -f moses.ini -xml-input inclusive -placeholder-factor 1 > > both yield a Segmentation fault upon translation of a segment with > placeholder xml tags in it. > > Similar variations on the commands, such as changing the index of the > placeholder-factor or the 'inclusive' xml option into 'exclusive', yield > similar problems (even though -placeholder-factor 3 or -placeholder-factor > 4 result in different error messages). > > Do you know whether and how this could be fixed? If this is a fix which > does not require a deep understanding of Moses code I wouldn't mind to do > it myself. > > Thank you and best regards, > > Vito > > > 2016-06-03 11:43 GMT+02:00 Vito Mandorino < > vito.mandor...@linguacustodia.com>: > >> Hi Hieu, >> >> There is also the mosesserver issue so I cannot say that's the only >> difficulty from using tree-based models. If you can have a look it would be >> great anyway. Speed is also an issue even though much less for hierarchical >> than syntactic models in our tests. >> >> Thank you and best regards, >> Vito >> >> 2016-06-02 14:44 GMT+02:00 Hieu Hoang <hieuho...@gmail.com>: >> >>> I believe placeholders can be used but no-one has really tried. If thats >>> the only thing holding you back from using hiero/syntax models, I can look >>> into it for you. >>> >>> However, there's likely to be other issues, such as speed and memory >>> consumption which may make these models unsuitable for commercial use. >>> >>> Hieu Hoang >>> http://www.hoang.co.uk/hieu >>> >>> On 2 June 2016 at 11:48, Vito Mandorino < >>> vito.mandor...@linguacustodia.com> wrote: >>> >>>> Dear all, >>>> >>>> I am exploring hierarchical and syntactic models and I have two >>>> questions: >>>> >>>> 1. Is it possible to decode using mosesserver instead of moses_chart ? >>>> According to " /mosesdecoder/bin/mosesserver --help " one can choose >>>> different --search-algorithm values. I tried for instance, for a >>>> target-syntax model, >>>> >>>> /mosesdecoder/bin/mosesserver -f moses.ini --search-algorithm 6 >>>> >>>> but got no translation in return (and actually no error either). >>>> >>>> 2. Is it possible to use placeholders with a hierarchical or syntactic >>>> model? >>>> I tried something like >>>> >>>> echo '<ne translation="@num@" entity="7">@num@</ne> test' | >>>> /mosesdecoder/bin/moses_chart -f moses.ini -xml-input inclusive >>>> >>>> which got me a Segmentation Fault. Is there any additional >>>> preprocessing step needed to make them work together? >>>> >>>> >>>> Thank you, >>>> >>>> Vito >>>> >>>> -- >>>> *M**. Vito MANDORINO -- Chief Scientist* >>>> >>>> >>>> [image: Description : Description : lingua_custodia_final full logo] >>>> >>>> *The Translation Trustee* >>>> >>>> *1, Place Charles de Gaulle, **78180 Montigny-le-Bretonneux* >>>> >>>> *Tel : +33 1 30 44 04 23 Mobile : +33 6 84 65 68 89 >>>> <%2B33%206%2084%2065%2068%2089>* >>>> >>>> *Email :* *vito.mandor...@linguacustodia.com >>>> <massinissa.ah...@linguacustodia.com>* >>>> >>>> *Website :* >>>> *www.linguacustodia.finance <http://www.linguacustodia.com/>* >>>> >>>> _______________________________________________ >>>> Moses-support mailing list >>>> Moses-support@mit.edu >>>> http://mailman.mit.edu/mailman/listinfo/moses-support >>>> >>>> >>> >> >> >> -- >> *M**. Vito MANDORINO -- Chief Scientist* >> >> >> [image: Description : Description : lingua_custodia_final full logo] >> >> *The Translation Trustee* >> >> *1, Place Charles de Gaulle, **78180 Montigny-le-Bretonneux* >> >> *Tel : +33 1 30 44 04 23 Mobile : +33 6 84 65 68 89 >> <%2B33%206%2084%2065%2068%2089>* >> >> *Email :* *vito.mandor...@linguacustodia.com >> <massinissa.ah...@linguacustodia.com>* >> >> *Website :* >> *www.linguacustodia.finance <http://www.linguacustodia.com/>* >> > > > > -- > *M**. Vito MANDORINO -- Chief Scientist* > > > [image: Description : Description : lingua_custodia_final full logo] > > *The Translation Trustee* > > *1, Place Charles de Gaulle, **78180 Montigny-le-Bretonneux* > > *Tel : +33 1 30 44 04 23 Mobile : +33 6 84 65 68 89 > <%2B33%206%2084%2065%2068%2089>* > > *Email :* *vito.mandor...@linguacustodia.com > <massinissa.ah...@linguacustodia.com>* > > *Website :* > *www.linguacustodia.finance <http://www.linguacustodia.com/>* >
_______________________________________________ Moses-support mailing list Moses-support@mit.edu http://mailman.mit.edu/mailman/listinfo/moses-support