I created an iterator using Bucketiterator on train_data, which has two columns ‘text’ and its label, I also developed the vocab using LABEL.build_vocab(train_data,).
The train_data is a text which is convert into ids
image1105×639 40.3 KB
Creating iterator

Error:
image966×308 32.9 KB