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

make interactive mode print out alignment nicely

parent d3795d6c
...@@ -72,7 +72,7 @@ def main(args): ...@@ -72,7 +72,7 @@ def main(args):
remove_bpe=args.remove_bpe, remove_bpe=args.remove_bpe,
) )
print('H\t{}\t{}'.format(hypo['score'], hypo_str)) 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__': if __name__ == '__main__':
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment