SimpleDorff - Calculate Krippendorff's Alpha on a DataFrame
Krippendorff's Alpha is a commonly used inter-annotator reliability metric, but it's hard to calculate on a Dataframe. This package makes it easy.
Made with ❤️ by LightTag - The Text Annotation Tool For Teams. We use this in production to give our customers a single number to understand the quality of their labeled data. Read the blog post here
Problem It Solves
Calculating Krippendorff's Alpha assumes data is formatted in a way that just doesn't appear in the wild. We wanted a package that could read a Dataframe in the formats we see in real life and give us the Alpha in one line.
Installing
pip install simpledorff
Usage
import simpledorff
import pandas as pd
Data = pd.read_csv('./examples/from_paper.csv') #Load Your Dataframe
Data.head()
| Unnamed: 0 | document_id | annotator_id | annotation | |
|---|---|---|---|---|
| 0 | 0 | 1 | A | 1.0 |
| 1 | 1 | 1 | B | 1.0 |
| 2 | 2 | 1 | D | 1.0 |
| 3 | 3 | 1 | C | NaN |
| 4 | 4 | 2 | A | 2.0 |
simpledorff.calculate_krippendorffs_alpha_for_df(Data,experiment_col='document_id',
annotator_col='annotator_id',
class_col='annotation')
0.743421052631579
Metadata
Release files for simpledorff 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| simpledorff-0.0.2.tar.gz | 3.8 kB | Without provenance | Details for simpledorff-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| simpledorff-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for simpledorff-0.0.2-py3-none-any.whl |
Total release size: 9.4 kB
Release files / simpledorff-0.0.2.tar.gz
| Download URL | simpledorff-0.0.2.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
950a62fc1da97560267df72ed4087092e9d6d5352350a75ba8c0363fbd89f0f8
|
|
BLAKE2b-256 checksum How to use checksums |
6e3b40412f60a133c19b9315ce3a1f1f974d3c92c4beb56fb999f46e999922d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.9
|
Release files / simpledorff-0.0.2-py3-none-any.whl
| Download URL | simpledorff-0.0.2-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e24a4d939da35755b9913285bcda592842a50956367f6ee0190e42888dbf8585
|
|
BLAKE2b-256 checksum How to use checksums |
720187d5dfd1a11fdc4115bf4fe6321cc6ae831c4f5bb02996fe33cecd4ae0db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.9
|
Security for simpledorff 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.