You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clearly, for tag 'x' and evaluation schema=Type, we expect to have 1 correct value, as there is a match in the label and an overlap in the span.
And indeed, when I run:
Consider this case:
pred = [[{'label': 'y', 'start': 0, 'end': 2}, {'label': 'x', 'start': 0, 'end': 2}]]
true = [[{'label': 'x', 'start': 0, 'end': 1}]]
Clearly, for tag 'x' and evaluation schema=Type, we expect to have 1 correct value, as there is a match in the label and an overlap in the span.
And indeed, when I run:
results = Evaluator(true=true, pred=pred, tags=['x']).evaluate()
results[1]['x']['ent_type']['correct']
I get a result of 1.
However, when I run:
results = Evaluator(true=true, pred=pred, tags=['x', 'y']).evaluate()
results[1]['x']['ent_type']['correct']
(asking for results for the two different tags)
I get a result of 0.
The text was updated successfully, but these errors were encountered: