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
In case when a sentence is correctly predicted with no entities, isn't this sentence (labels) meant to be added to the metric calculations?
Looking at the support figure of "2" I believe that this implies that the last sentence is not taken into consideration.
Can you clarify this please?
Operating System: Ubuntu 20.04
Python Version: 3.7
Package Version: 1.2.2
The text was updated successfully, but these errors were encountered:
(I know this is old, but I hope that after I provide this answer, the issue might get closed)
The support is the number of sample used per class in calculation of classification metrics.
The last sentence without any annotations is still taken into consideration, but it doesnt add any true positives.
I would like to understand how seqeval treats sentences with no expected entities.
Taking the bellow example (adapted from the documentation);
actuals = [['O', 'O', 'O', 'B-MISC', 'I-MISC', 'I-MISC', 'O'], ['B-PER', 'I-PER', 'O'], ['O','O','O','O']]
preds = [['O', 'O', 'B-MISC', 'I-MISC', 'I-MISC', 'I-MISC', 'O'], ['B-PER', 'I-PER', 'O'], ['O','O','O','O']]
print(classification_report(actuals, preds, mode='strict', scheme=IOB2, digits=4))
I get the following output;
In case when a sentence is correctly predicted with no entities, isn't this sentence (labels) meant to be added to the metric calculations?
Looking at the support figure of "2" I believe that this implies that the last sentence is not taken into consideration.
Can you clarify this please?
The text was updated successfully, but these errors were encountered: