Skip to content
Snippets Groups Projects
Verified Commit 4d57f8ea authored by Yoann Schneider's avatar Yoann Schneider :tennis:
Browse files

Ignore empty lines inside the BIO files

parent 3dbcd9f2
No related branches found
No related tags found
1 merge request!48Ignore empty lines inside the BIO files
Pipeline #159181 passed
......@@ -108,7 +108,7 @@ def parse_bio(lines: List[str]) -> dict:
and get_type_label(future_label) != last_tag
):
index += 1
if index < len(lines):
if index < len(lines) and lines[index]:
future_label = lines[index].split()[1]
# Check for continuation of the original entity
......
......@@ -6,6 +6,7 @@ de I-PER
Dieu I-PER
roy I-PER
de I-PER
France B-LOC
et I-PER
de I-PER
......
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