Hello, all! This is my first post. Please be gentle if I’m doing something something obviously stupid.
I’m attempting to take the IMDB classifier covered in Part 1, lessons 3 and 4, and I replaced the text in the IMDB folder with text that I scraped.
it’s giving me this error when I get to the show_batch() step.
I remember seeing/hearing something about setting text encodings. I’m not sure if that’s the solution here. I’m sure someone’s done this before. Can someone gently point me in the right direction?
Thank you!
StopIteration Traceback (most recent call last)
in ()
----> 1 data_lm.show_batch()
1 frames
/usr/local/lib/python3.6/dist-packages/fastai/basic_data.py in one_batch(self, ds_type, detach, denorm, cpu)
166 w = dl.num_workers
167 dl.num_workers = 0
–> 168 try: x,y = next(iter(dl))
169 finally: dl.num_workers = w
170 if detach: x,y = to_detach(x,cpu=cpu),to_detach(y,cpu=cpu)
StopIteration: