Dear all,
I'm trying to rewrite in Python the lexical translation probability code
following the code inside score.cpp.
In particular case, I get different results from the score.cpp output

#output From Score.cpp
partido de ||| of ||| (0) (0) ||| (0,1) ||| 0.666667  0.75
lex0(of|partido) = 0.75
# aligned word to "of"  =  1  =>
LexicalScore E2F = 0.75/1 =0.75

#output my code
partido de ||| of ||| (0) (0) ||| (0,1) ||| 0.666667 0.5561594
lex0(of|partido) = 0.7500000
lex0(of|de) = 0.3623188
# aligned word to "of"  = 2
Lexical Score E2F => (0.75+0.3623188)/2 =  0.5561594

I'm using the same lexical files
I do not understand the reason because the otutput of the score.cpp does not
contain lex0(of|de)... can be a bug?

Thanks
Marco
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to