08 demo machine translate "beam_search() got multiple values for keyword argument 'end_id'"
Created by: zishuaiz
error message:
Traceback (most recent call last):
File "infer.py", line 196, in <module>
main(use_cuda)
File "infer.py", line 191, in main
decode_main(False) # Beam Search does not support CUDA
File "infer.py", line 133, in decode_main
translation_ids, translation_scores = decode(context)
File "infer.py", line 98, in decode
beam_size, end_id=10, level=0)
TypeError: beam_search() got multiple values for keyword argument 'end_id'