I have run into what may be the most bizarre error of my life. I have written a function to train a BERT model as follows :
def process_data(path, enc_pos = N