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

Add default threshold as constant

parent 5fbc8dd3
No related branches found
No related tags found
1 merge request!6Add threshold as option
Pipeline #103800 passed
......@@ -11,6 +11,8 @@ import termtables as tt
NOT_ENTITY_TAG = "O"
THRESHOLD = 0.30
def get_type_label(label: str) -> str:
"""Return the type (tag) of a label
......@@ -533,7 +535,7 @@ def main():
"--threshold",
help="Set a distance threshold for the match between gold and predicted entity.",
required=False,
default=0.3,
default=THRESHOLD,
type=threshold_float_type,
)
args = parser.parse_args()
......
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