Skip to main content

Python module for evaluating speaker diarization.

Project description

Getting Started

This project is Speechmatics' fork of https://github.com/pyannote/pyannote-metrics used to calculate various speaker diarization metrics from reference/hypothesis transcript pairs.

To install the package:

pip install speechmatics-diarization-metrics

This package has a CLI supporting ctm, lab, or V2 JSON format transcripts and can be run using:

python3 -m sm_diarization_metrics.cookbook reference.json transcript.json

For further guidance run:

python3 -m sm_diarization_metrics.cookbook -h

Run from source code

If you would prefer to clone the repo and run the source code:

git clone git@github.com:speechmatics/speechmatics-python.git

cd speechmatics-python/metrics/sm_diarization_metrics

pip install -r ./requirements.txt

python3 -m sm_diarization_metrics.cookbook reference.json transcript.json

Build wheel

To build and install the wheel run: make wheel make install

Docs

Further description of how to use the tool and the metrics available are in sm_diarization_metrics.pdf

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

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