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 <http://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
Moses-support@mit.edu
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to