Commit 6532e32b authored by alexeib's avatar alexeib Committed by Myle Ott
Browse files

make interactive mode print out alignment nicely

parent d3795d6c
Loading
Loading
Loading
Loading
+1 −1
Changes for interactive.py: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -72,7 +72,7 @@ def main(args):
                remove_bpe=args.remove_bpe,
            )
            print('H\t{}\t{}'.format(hypo['score'], hypo_str))
            print('A\t{}'.format(' '.join(map(str, alignment))))
            print('A\t{}'.format(' '.join(map(lambda x: str(utils.item(x)), alignment))))


if __name__ == '__main__':