This commit is contained in:
James Betker 2022-03-05 23:11:10 -07:00
parent ef63ff84e2
commit 64d764ccd7

View File

@ -47,7 +47,7 @@ def load_tsv_aligned_codes(filename):
bad_lines = 0
for line in f:
components = line.strip().split('\t')
if len(components) < 2:
if len(components) < 3:
bad_lines += 1
if bad_lines > 10:
print(f'{filename} contains 10+ bad entries. Failing. Sample last entry: {line}')