Open SibtainRazaJamali opened 4 years ago
Did you solve the problem?
I had an error in layoutlm/data/funsd.py on the line: assert splits[0] == bsplits[0]
The problem was after the following split because some samples had actually a '\T' in it: splits = line.split("\t") bsplits = bline.split("\t")
after replacing '\T' in the text the problem was gone. Maybe it's somethin similar here.
Hi @r000bin, I encountered the same error. In the solution you provided, did you mean that you replaced '\T' in the train.txt file?
I am getting error For all sequences i have len(label_ids)==512 but for 1 example i am getting a length of 513. Assertion Error, assert(len(label_ids)==max_seq_length) What is the reason behind this error?