Redmine #1487: error message fix
This commit is contained in:
parent
7bf4903154
commit
b7a0b4d066
|
@ -85,8 +85,8 @@ class Runner:
|
|||
else:
|
||||
classla_columns = classla_line.split('\t')
|
||||
tagged_columns = tagged_line.split('\t')
|
||||
assert len(classla_columns) == 10, 'Missing token in classla-generated conllu ({}).'.format(len(tagged_line))
|
||||
assert len(tagged_columns) == 10, 'Missing token in pre-tagged conllu ({}).'.format(len(classla_line))
|
||||
assert len(classla_columns) == 10, 'Missing token in classla-generated conllu ({}).'.format(tagged_line)
|
||||
assert len(tagged_columns) == 10, 'Missing token in pre-tagged conllu ({}).'.format(classla_line)
|
||||
assert classla_columns[1] == tagged_columns[1], 'Pre-tagged token form ({}) does not match classla-generated token form ({}).'.format(classla_columns[1], tagged_columns[1])
|
||||
merged_columns = [classla_columns[i] if i in (3,5,9) else tagged_columns[i] for i in range(10)]
|
||||
merged_line = '\t'.join(merged_columns)
|
||||
|
|
Loading…
Reference in New Issue
Block a user