Question Duplicates - EX05, EX06 - cannot unpack non-iterable NoneType object

Hi, I’m getting this error:
cannot unpack non-iterable NoneType object
for the line:
v1, v2 = model((q1, q2))

Need some help on this, please!!
Thanks in advance!!!

I tried setting vocab[’ ‘] instead of vocab[’’] as mentioned in another topic but it didn’t help either.
I’m still getting the same error.

Try vocab['<PAD>'] and see if that solves your problem. If not, you can private message me your Assignment notebook and I will take a look.

It did solved for me thanks a lot!

1 Like