-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Help Wanted] Reimplement Dump_beam for beam visualization #719
Comments
It looks like beam dumping hasn't been implemented yet. |
okay. It seems that it used to be implemented and then removed by this commit: 3052e38#diff-bb5f81e1cd6e5e13578730e07d26f151L182 Anyway, it needs to be reimplemented and if possible with the same output as the Torch version: So that the existing visualization tool can be used. I don't have time to take care of this, if anyone is interested, these pointers should be enough. |
I'll give it a look. |
@bpopeters di you have time to work on this ? |
kind reminder if you have time. |
Kind reminder if you have time. |
Hello!
I'm trying to use the
dump_beam
parameter in the translate.py file, but I get this error:By looking at the code, it seems that line 210 of Translator.py should be modified from
json.dump(self.translator.beam_accum
tojson.dump(self.beam_accum
, but it still does not work. No error is thrown now, but the beam file only contains:{"predicted_ids": [], "beam_parent_ids": [], "log_probs": [], "scores": []}
. How can I get the correct output?Note that the output file is correct.
Thank you!
The text was updated successfully, but these errors were encountered: