ok, i've added it back

https://github.com/moses-smt/mosesdecoder/commit/21c51194fab91f8e79409545db98642cbac9b505
let me know if it works for you

On 12 March 2013 19:05, Greg Hanneman <[email protected]> wrote:

> Hi Hieu,
>
> Sorry about the delay in writing back -- I've had a busy last few days.
>
> Yes, I think it would be great to have the -print-alignment-info flag
> re-implemented.  We could in theory get the alignment information from a
> separate output file, but it would be much more convenient to have it as an
> extra field next to the one-best translation, as before.  Would you be able
> to let me know when the flag is re-instated so I could check out the right
> version of the code?
>
> Thanks a lot!
> Greg.
>
>
>
> On 7 March 2013 02:14, Hieu Hoang <[email protected]> wrote:
>
>>  ah, i didn't misread your email.
>>
>> i deleted both
>>   -use-alignment-info
>>   -print-alignment-info
>> but -print-alignment-info wasn't redundant.
>>
>> I can reimplement
>>   -print-alignment-info
>> if you can't get the info from using
>>   -alignment-output-file [file]
>>
>>
>>
>> On 07/03/2013 00:23, Hieu Hoang wrote:
>>
>> hi greg
>>
>> printing word alignment is still a feature. In fact it's been cleaned up,
>> optimized, debugged, and now on by default. It works for both pb, and
>> hiero/syntax models.
>>
>> The 2 arguments are
>>   -print-alignment-info-in-n-best [0 or 1]
>> and
>>   -alignment-output-file [file]
>>
>> The arg ( -print-alignment-info) was removed it was redundant.
>>
>> If you intend to use it, double check that your phrase table contains it.
>>
>> Also, double check that your binary phrase table contains word alignment.
>> In the phrase-based case, there should be files called
>>    *.wa
>>
>> On 06/03/2013 23:55, Greg Hanneman wrote:
>>
>> Hi Hieu,
>>
>> I was wondering if I could ask a question about the flags in Moses used
>> for getting word-to-word alignments out along with the translation.  With
>> the pre-November versions, we were using the "-use-alignment-info" and
>> "-print-alignment-info" flags to get word alignments as an extra column in
>> the output, like this:
>>
>> We are selling a hard drive .
>> 我们 的 销售 硬盘 驱动 器 。  ||| 0-0 2-2 4-3 5-4 5-5 6-6
>>
>> These flags don't seem to exist in newer versions of Moses, and I
>> couldn't find anything equivalent in the decoder's help message.  Is it the
>> case now that word alignments can only be written out to a totally separate
>> file ("-alignment-output-file FILE") or in an n-best list format with some
>> additional columns ("-n-best-list - 1 -print-alignment-info-in-n-best")?
>> Or is there a new cocktail of flags that I can use?  I'd like to replicate
>> the same output format as before, if possible.
>>
>> Relatedly, I think the documentation on statmt.org is a little
>> inconsistent or maybe only partially updated.  Cf.
>> http://www.statmt.org/moses/?n=Moses.AdvancedFeatures#ntoc3 , which
>> disallows --print-alignment-info, and
>> http://www.statmt.org/moses/?n=Moses.AdvancedFeatures#ntoc9 , which
>> still suggests using it.
>>
>> Thanks in advance for any help you can provide!
>> Greg.
>>
>>
>>
>>
>>
>
> _______________________________________________
> Moses-support mailing list
> [email protected]
> http://mailman.mit.edu/mailman/listinfo/moses-support
>
>


-- 
Hieu Hoang
Research Associate
University of Edinburgh
http://www.hoang.co.uk/hieu
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to