Skip to content
Snippets Groups Projects
Commit f8d4b601 authored by Patrick Jentsch's avatar Patrick Jentsch
Browse files

Fix corpus building process for vrt files without entities

parent aff85f21
No related merge requests found
......@@ -97,7 +97,7 @@ def normalize_vrt_file(input_file, output_file):
multi_line_tag_definition = False
continue
pos_attrs = line.rstrip('\n').split('\t')
if not has_ent_as_s_attr:
if not has_ent_as_s_attr and len(pos_attrs) > 4:
if pos_attrs[4].lower() in ['null', 'none']:
if current_ent:
output_vrt += '</ent>\n'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment