Seqeval

Latest version: v1.2.2

Safety actively analyzes 621444 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

1.2.2

Update setup.py to relax version pinning, fix 65

1.2.1

In strict mode, speed up the evaluation.
About 13 times faster.

Fixes 62

1.2.0

Enable to compute macro/weighted/perClass f1, recall, and precision 61

F1 score

python
>>> from seqeval.metrics import f1_score
>>> y_true = [['O', 'O', 'B-MISC', 'I-MISC', 'B-MISC', 'O', 'O'], ['B-PER', 'I-PER', 'O']]
>>> y_pred = [['O', 'O', 'B-MISC', 'I-MISC', 'B-MISC', 'I-MISC', 'O'], ['B-PER', 'I-PER', 'O']]
>>> f1_score(y_true, y_pred, average=None)
array([0.5, 1. ])
>>> f1_score(y_true, y_pred, average='micro')

1.1.1

Add length check to classification_report v1 59

1.1.0

Add BILOU as a scheme 56

1.0.0

In some cases, the behavior of the current classification_report is not enough. In the new classification_report, we can specify the evaluation scheme explicitly. This resolved the following issues:

Fix 23
Fix 25
Fix 35
Fix 36
Fix 39

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.