w1_unittest.test_get_corrections(get_corrections, probs, vocab)
produces the followings
Wrong output values.
Expected: [('say', 0.0019770955347483865), ('can', 0.0019211400007460738), ('an', 0.0017719252434065728), ('man', 0.0013242809713880702), ('son', 0.0007274219420300668)].
Got: [('saw', 0.0002797776700115641), ('fan', 3.730368933487522e-05), ('wan', 1.865184466743761e-05), ('sap', 1.865184466743761e-05), ('tan', 1.865184466743761e-05)].
8 Tests passed
1 Tests failed
And I don’t know why, even after I read other similar issue reports uploaded here. I included the input suggestion and sorted the n_best according to the probability for sure. Can anyone let me know what’s wrong?