"sgl-kernel/git@developer.sourcefind.cn:change/sglang.git" did not exist on "ca63f075b7d8cef11576bc2f8d3f2ebf32228604"
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):
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__':
......
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