Here is my understanding of dataloaders -

create dataset class with getitem and len attributes

build vocab
convert words to ids
pad the sentence
convert it into tensor?


pass into data loader
pass it into the model
is this right?

i am working on imdb dataset rn, i have the review, the rating and sentiment, so i do this, and do i have to do more, can anyone link a code that does this, or a tutorial for dataloaders in nlp. or can someone give a detailed step by step (explain like i am 5) of dataloaders.