Open kugwzk opened 4 years ago
Hi~ I have a similar problem but I don't know how to solve it. TypeError: forward() missing 1 required positional argument: 'history_lengths' How did you solve it? Thank you very much!
@kugwzk
@zzs-NLP , I didn't remember I met this problem. Maybe you can add 'history_len' in the parameter list?
@kugwzk Ok, thank you very much for your advice, I will try it again~
Hello, @ByronPan . I tried your code and got a pred.txt, and also get similar results about the diversity. However, I only got
BLEU = 3.93, 38.4/6.9/2.6/1.3 (BP=0.716, ratio=0.750, hyp_len=38839, ref_len=51813)
and for ROUGEROUGE(1/2/3/L/SU4): 19.61/5.65/1.85/19.32/8.48
. I think you said use a smooth BLEU so how could I got this script? And as for the rouge, could you please show more detail about the test_rouge script. Thanks a lot.