You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not really a bug, i was just wondering why inference.py is only translating my input one time even though "num_translations_per_input" in hparams is 20. Because of that, the model allways respons with the same answer to the same input. The model is trained on ~12 million reddit pairs. Why is this and is there a solution to this? Thanks
The text was updated successfully, but these errors were encountered:
I'm gonna copy and paste what I wrote on a more recent post asking the same thing:
Inference.py returns the highest scoring response. If you look in inference.py you will see a line at the bottom that mentions max (Not at my pc rn cannot confirm line number), that is returning the highest score. If you want to print all responses you'll have to change this section of code.
Hey everyone! I finally solved this issue after doing a lot of R&D on the nmt package. The reason why your chatbot produces only one response is due to the hyper-parameter: 'infer-mode' set to 'greedy'. Go to setup/settings.py and in the hparams dict add a new key: 'infer-mode' and set it to 'beam-search'. This will solve your issue, thanks!
Check out the image below.
This is not really a bug, i was just wondering why inference.py is only translating my input one time even though "num_translations_per_input" in hparams is 20. Because of that, the model allways respons with the same answer to the same input. The model is trained on ~12 million reddit pairs. Why is this and is there a solution to this? Thanks
The text was updated successfully, but these errors were encountered: