Closed alecristia closed 3 years ago
[pyannote.metrics][https://pyannote.github.io/pyannote-metrics/] is a python package that computes several metrics that we'd like to use. The package is very flexible, but we only want to use the identification type of task (supervised speaker identification); and the specific metrics we want to extract are:
Consider using reticulate to call a python package from within R.
consider using reticulate
Marvin wrote compute_metrics.py (in shared dropbox/valois_reliability/scripts/, code below); which is called with code as follows from bash:
python scripts/compute_metrics.py -ref $gold_data/ \ -hyp $system_data/ -t identification \ -m ider
NOTE: -ref is the referent, -hyp is the hypothesis/system, -t is the type of task (identification forces labels to be identical across ref and hyp), -m is the list of metrics we want, and we want ider (identification error rate).
REPRODUCTION OF compute_metrics.py