Skip to content
Snippets Groups Projects
Commit 5940c8d9 authored by Blanche Miret's avatar Blanche Miret
Browse files

Correct limited length labels

parent 4ac1cba6
No related branches found
No related tags found
No related merge requests found
Pipeline #103814 passed
......@@ -41,7 +41,7 @@ def get_position_label(label: str) -> str:
pos = (
NOT_ENTITY_TAG
if label == NOT_ENTITY_TAG
else re.match(r"([BIESLU])-.{3,4}", label)[1]
else re.match(r"([BIESLU])-(.*)$", label)[1]
)
except TypeError:
raise (Exception(f"The label {label} is not valid in BIOES/BIOLU format."))
......
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