Skip to content

Commit

Permalink
Update translation.py
Browse files Browse the repository at this point in the history
DEBUG: `build_align_pharaoh` returns 2 values.
  • Loading branch information
stellarway committed Jul 6, 2023
1 parent 2d93779 commit 9baa243
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onmt/translate/translation.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def log(self, sent_number):

if self.word_aligns is not None:
pred_align = self.word_aligns[0]
pred_align_pharaoh = build_align_pharaoh(pred_align)
pred_align_pharaoh, _ = build_align_pharaoh(pred_align)
pred_align_sent = " ".join(pred_align_pharaoh)
msg.append("ALIGN: {}\n".format(pred_align_sent))

Expand Down

0 comments on commit 9baa243

Please sign in to comment.