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

Allow any length of label

parent e2b6bf95
No related branches found
No related tags found
No related merge requests found
Pipeline #103811 failed
......@@ -24,7 +24,7 @@ def get_type_label(label: str) -> str:
tag = (
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