mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-14 16:55:42 +00:00
Fix corpus building process for vrt files without entities
This commit is contained in:
parent
aff85f2145
commit
f8d4b601f7
@ -97,7 +97,7 @@ def normalize_vrt_file(input_file, output_file):
|
|||||||
multi_line_tag_definition = False
|
multi_line_tag_definition = False
|
||||||
continue
|
continue
|
||||||
pos_attrs = line.rstrip('\n').split('\t')
|
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 pos_attrs[4].lower() in ['null', 'none']:
|
||||||
if current_ent:
|
if current_ent:
|
||||||
output_vrt += '</ent>\n'
|
output_vrt += '</ent>\n'
|
||||||
|
Loading…
Reference in New Issue
Block a user