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
Metadata
Release files for speechmatics-diarization-metrics 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| speechmatics_diarization_metrics-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Release files / speechmatics_diarization_metrics-0.0.2-py3-none-any.whl
| Download URL | speechmatics_diarization_metrics-0.0.2-py3-none-any.whl |
|---|---|
| Size | 65.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
84ccba52f06e0105b5118b2b23a99e791810fd09e810fc1ef1056536389e0bc0
|
|
BLAKE2b-256 checksum How to use checksums |
9aa53e01500412729fe545dc3e154678296094f460e64f34f73862940379da34
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.15
|