Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Understanding NER F1 score seqeval calculation #101

Open
KrishnanJothi opened this issue Mar 20, 2023 · 0 comments
Open

Understanding NER F1 score seqeval calculation #101

KrishnanJothi opened this issue Mar 20, 2023 · 0 comments

Comments

@KrishnanJothi
Copy link

Hello everyone,

Please see the below image, which consists of the model prediction and target sentences with labels. The number on the right is the f1 micro score. The following code is used to generate the metric:

f1_score(valid_tags,pred_tags, average='micro', mode='strict', scheme=IOB2)

image

Can anyone please explain how it is calculated?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant