Skip to content

simple 'I', 'O', 'B' tagging throws error #46

@moritzblum

Description

@moritzblum

Since the last commit, the simple 'I', 'O', 'B' tags are no longer supported.

from seqeval.metrics import f1_score

y_true = [['O', 'O', 'O', 'B', 'I', 'I', 'O'], ['B', 'I', 'O']]
y_pred = [['O', 'O', 'B', 'I', 'I', 'I', 'O'], ['B', 'I', 'O']]
f1_score(y_true, y_pred)

Throws error:
ValueError: Invalid tag is found: B

Is this behaviour intended?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions