When using mosesserver, with the -align and -topt flags noticed that the first element of the list of alignments does not make sense.
Example from en-es: "my blue car" Alignment: {'src-start': -1, 'tgt-start': -1, 'src-end': -1, 'tgt-end': -1}, {'src-start': 0, 'tgt-start': 0, 'src-end': 0, 'tgt-end': 1} When into the TranslationRequest.cpp printed the target GetStartPos() in add_phrase_an_info(). The mosesserver output is: [moses/server/TranslationRequest.cpp:288] Input: my blue car Translating: my blue car Line 0: Collecting options took 0.009 seconds at moses/Manager.cpp Line 141 Line 0: Search took 0.091 seconds [moses/server/TranslationRequest.cpp:374] BEST TRANSLATION: mi coche azul [111] [total=-1.508] core= ... *[moses/server/TranslationRequest.cpp:87] H: [000] [total=0.000] core=(0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,* *0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000* *)* *[moses/server/TranslationRequest.cpp:95] ALIGN: -1* *[moses/server/TranslationRequest.cpp:97] TARGET: [18446744073709551615..18446744073709551615]* [moses/server/TranslationRequest.cpp:87] H: mi [100] [total=-1.322] core=(0.000,-1.000,1.000,0.000,-0.245,-0.257,-0.435,-0.565,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.0 00,0.000,0.000,0.000,-0.264,0.000,0.000,0.000,0.000,0.000,-0.247,0.000,0.000,0.000,0.000,0.000,-0.185,0.000,0.000,0.000,0.000,0.000,-0.068,0.000,0.000,0.000,0.000,0.000,-6.101,-7. 162,-7.741,-10.450) [moses/server/TranslationRequest.cpp:95] ALIGN: 0 [moses/server/TranslationRequest.cpp:97] TARGET: [0..0] [moses/server/TranslationRequest.cpp:87] H: mi coche azul [111] [total=-1.508] core=(0.000,-3.000,2.000,0.000,-0.756,-1.081,-1.712,-2.459,0.000,0.000,0.000,0.000,0.000,0.000,0.00 0,0.000,0.000,0.000,0.000,0.000,-0.341,0.000,0.000,-0.093,0.000,0.000,-0.247,0.000,0.000,-0.320,0.000,0.000,-0.185,0.000,0.000,-0.103,0.000,0.000,-0.068,0.000,0.000,-0.141,0.000,0 .000,-26.601,-29.405,-36.306,-35.151) [moses/server/TranslationRequest.cpp:95] ALIGN: 1 [moses/server/TranslationRequest.cpp:97] TARGET: [1..2] In bold the problematic output. Why does it return alignment -1 ? -- Maria Braga
_______________________________________________ Moses-support mailing list Moses-support@mit.edu http://mailman.mit.edu/mailman/listinfo/moses-support