What’s the best way to go about doing Optical Character Recognition (OCR)?

It returns PosixPath('words/c06/c06-027/c06-027-01-05.png')

I’ve been loading the target from a dictionary of {fpath: label}, I’ll inspect if something’s awry with it and update this comment…

EDIT:

Originally when label_from_func return signature is

return list(data_dict[fpath.stem])

there is no error. Data loads in a 1-1 fashion. The only issue being target is MultiCategory instead of MultiCategoryList

On changing it to

return ';'.join(list(data_dict[fpath.stem]))

only some targets are loading in train_ds.y as MultiCategoryList whereas all the images loaded in train_ds.x without any problem.