AttributeError: 'BucketIterator' object has no attribute 'text'

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

Creating iterator

image

Error:

1 Like