We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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
ValueError: Invalid tag is found: B
Is this behaviour intended?
The text was updated successfully, but these errors were encountered:
Hmm, no. This is due to the validation.
Sorry, something went wrong.
Quickfix:
if chunk in ['O', 'B', 'I']: return
d13bfb4
Merge pull request #47 from chakki-works/fix/#46
ca1ad9f
Update validation to fix #46
No branches or pull requests
Since the last commit, the simple 'I', 'O', 'B' tags are no longer supported.
Throws error:
ValueError: Invalid tag is found: B
Is this behaviour intended?
The text was updated successfully, but these errors were encountered: