Skip to main content

Testing framework for sequence labeling

Project description


# seqeval
seqeval is a testing framework for sequence labeling.

seqeval supports following representations:
* IOB
* IOBES

## How to use
Behold, the power of seqeval:

```python
>>> from seqeval.metrics import f1_score, accuracy_score, classification_report
>>> y_true = ['O', 'O', 'O', 'B-MISC', 'I-MISC', 'I-MISC', 'O', 'B-PER', 'I-PER']
>>> y_pred = ['O', 'O', 'B-MISC', 'I-MISC', 'I-MISC', 'I-MISC', 'O', 'B-PER', 'I-PER']
>>> f1_score(y_true, y_pred)
0.50
>>> accuracy_score(y_true, y_pred)
0.50
>>> classification_report(y_true, y_pred)
precision recall f1-score support

MISC 0.00 0.00 0.00 1
PER 1.00 1.00 1.00 1

avg / total 0.50 0.50 0.50 2
```


## Install
To install seqeval, simply run:

```
$ pip install seqeval
```


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

seqeval-0.0.1-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file seqeval-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for seqeval-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3accd8315f5c90e53a5b4cfe423d77879285333fa690b95bfae07b3f6807f3f7
MD5 c7eafa3133f522fa0e3df58d20ae2470
BLAKE2b-256 b5be6843b334d323e71e4e6d9285e4d6b19f95288e7c7d31f58f67c108c4403c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page