Skip to main content

Crowd-Kit: Computational Quality Control for Crowdsourcing

GitHub Tests Codecov

Crowd-Kit is a powerful Python library that implements commonly-used aggregation methods for crowdsourced annotation and offers the relevant metrics and datasets. We strive to implement functionality that simplifies working with crowdsourced data.

Currently, Crowd-Kit contains:

  • implementations of commonly-used aggregation methods for categorical, pairwise, textual, and segmentation responses
  • metrics of uncertainty, consistency, and agreement with aggregate
  • loaders for popular crowdsourced datasets

The library is currently in a heavy development state, and interfaces are subject to change.

Installing

Installing Crowd-Kit is as easy as pip install crowd-kit

Getting Started

This example shows how to use Crowd-Kit for categorical aggregation using the classical Dawid-Skene algorithm.

First, let us do all the necessary imports.

from crowdkit.aggregation import DawidSkene
from crowdkit.datasets import load_dataset

import pandas as pd

Then, you need to read your annotations into Pandas DataFrame with columns task, performer, label. Alternatively, you can download an example dataset.

df = pd.read_csv('results.csv')  # should contain columns: task, performer, label
# df, ground_truth = load_dataset('relevance-2')  # or download an example dataset

Then you can aggregate the performer responses as easily as in scikit-learn:

aggregated_labels = DawidSkene(n_iter=100).fit_predict(df)

Implemented Aggregation Methods

Categorical Responses

Method Status
Majority Vote ✅
Dawid-Skene ✅
Gold Majority Vote ✅
M-MSR ✅
Wawa ✅
Zero-Based Skill ✅
GLAD 🟡
BCC 🟡

Textual Responses

Method Status
RASA ✅
HRRASA ✅
ROVER 🟡

Image Segmentation

Method Status
Segmentation MV ✅
Segmentation RASA 🟡
Segmentation EM 🟡

Pairwise Comparisons

Method Status
Bradley-Terry ✅
Noisy Bradley-Terry ✅

Questions and Bug Reports

For reporting bugs please use the Toloka/bugreport page.

License

© YANDEX LLC, 2020-2021. Licensed under the Apache License, Version 2.0. See LICENSE file for more details.

Metadata

Release files for crowd-kit 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for crowd-kit 0.0.6
File Size Uploaded Provenance Actions
crowd-kit-0.0.6.tar.gz 29.6 kB Without provenance Details for crowd-kit-0.0.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for crowd-kit 0.0.6
File Interpreter ABI Platform Actions
crowd_kit-0.0.6-py3-none-any.whl Python 3 none any Details for crowd_kit-0.0.6-py3-none-any.whl

Total release size: 80.6 kB

Release files / crowd-kit-0.0.6.tar.gz

Download URL crowd-kit-0.0.6.tar.gz
Size 29.6 kB
Tags Source
SHA-256 checksum
How to use checksums
19b03890ac89a3e09e04d34002bdf6a3a0ab6e34c610e5be15261c56fc3a6345
BLAKE2b-256 checksum
How to use checksums
e5ee3318ab59fa19310811c5991f87c4c46799118a601f7a6ec36809aa6620d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.8.11

Release files / crowd_kit-0.0.6-py3-none-any.whl

Download URL crowd_kit-0.0.6-py3-none-any.whl
Size 51.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c9f2971e2b55f6b379cd5d2b61ba0a2c9f668c22f1e0c1fba9d4a165731dd614
BLAKE2b-256 checksum
How to use checksums
473b77ebf674a76c441f4d96e8f4f74892b177e06b95291afe3a8b0a4d74b24c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.8.11

Security for crowd-kit 0.0.6

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page