So, the error is due to the fact that the variable batch which is a list has no attribute text. Shouldn’t batch be of type Tensor(if it’s being passed through a model?) Do the elements within the list have .text as an attribute?