A lightweight library to compute Diarization Error Rate (DER).
Project description
SimpleDER
Overview
This is a lightweight library to compute Diarization Error Rate (DER).
Features NOT supported:
- Handling overlapped speech, i.e. two speakers speaking at the same time.
- Allowing segment boundary tolerance, a.k.a. the
collar
value.
For more sophisticated with these supports, please use pyannote-metrics instead.
To learn more about speaker diarization, here is a curated list of resources: awesome-diarization.
Tutorial
Here is a minimal example:
import der
# reference (ground truth)
ref = [("A", 0.0, 1.0),
("B", 1.0, 1.5),
("A", 1.6, 2.1)]
# hypothesis (diarization result from your algorithm)
hyp = [("1", 0.0, 0.8),
("2", 0.8, 1.4),
("3", 1.5, 1.8),
("1", 1.8, 2.0)]
error = der.DER(ref, hyp)
print("DER={:.3f}".format(error))
This should output:
DER=0.350
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
simpleder-0.0.1.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for simpleder-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00c5cc50d217621fea021fa4b256a3ec7cfa98e325097c06e950b8f5f3ba07a2 |
|
MD5 | 1e5652d54e04313c67fd47dd61a985d5 |
|
BLAKE2b-256 | 843eaa746464278b11f630eae1e80e98852af6a8b1334722700c79c1939e7be9 |