Skip to content

Understanding NER F1 score seqeval calculation  #101

@KrishnanJothi

Description

@KrishnanJothi

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions