Nlp c3_w4 unq_c1

Hi
I have the following error for the unit test. It seems the issue is with -1 assigned. What is -1 supposed to mean ? The padding is 1 as defined in vocab

Thanks

Hi @hateshina

It’s hard to guess just from this output. You can private message me your notebook attached and I will try to help.

Cheers

I get the same error. All tests are accepted except this one where 2 tests are failing because of the -1 assignment instead of the pad integer.

Hi @Adam_Hjerpe

Please check your use of pad parameter. Do not use global vocab['<PAD>'] or similar inside the function, use the pad variable.