Update README.md
Browse files
README.md
CHANGED
@@ -22,28 +22,27 @@ diarization = pipeline(SAMPLE_FILE)
|
|
22 |
|
23 |
# print output
|
24 |
print(diarization)
|
25 |
-
# [ 00:00:06.730 --> 00:00:
|
26 |
-
# [ 00:00:
|
27 |
-
# [ 00:00:
|
28 |
-
# [ 00:00:
|
29 |
-
# [ 00:00:
|
30 |
-
# [ 00:00:
|
31 |
-
# [ 00:00:
|
32 |
-
# [ 00:00:
|
33 |
-
# [ 00:00:
|
34 |
-
# [ 00:00:18.
|
35 |
-
# [ 00:00:
|
36 |
-
# [ 00:00:
|
37 |
-
# [ 00:00:27.824 --> 00:00:29.967] M 2
|
38 |
|
39 |
# compute diarization error rate
|
40 |
from pyannote.metrics.diarization import DiarizationErrorRate
|
41 |
metric = DiarizationErrorRate()
|
42 |
metric(SAMPLE_FILE['annotation'], diarization, detailed=True)
|
43 |
-
# {'
|
44 |
-
# '
|
45 |
-
# '
|
46 |
-
# '
|
47 |
# 'total': 24.349999999999998,
|
48 |
-
# 'diarization error rate': 0.
|
49 |
```
|
|
|
22 |
|
23 |
# print output
|
24 |
print(diarization)
|
25 |
+
# [ 00:00:06.730 --> 00:00:07.185] A 1
|
26 |
+
# [ 00:00:07.590 --> 00:00:08.316] B 1
|
27 |
+
# [ 00:00:08.316 --> 00:00:09.852] C speaker90
|
28 |
+
# [ 00:00:09.852 --> 00:00:09.902] D 1
|
29 |
+
# [ 00:00:09.902 --> 00:00:10.982] E speaker91
|
30 |
+
# [ 00:00:10.459 --> 00:00:10.527] F 1
|
31 |
+
# [ 00:00:10.527 --> 00:00:14.729] G speaker90
|
32 |
+
# [ 00:00:14.307 --> 00:00:17.884] H speaker91
|
33 |
+
# [ 00:00:18.019 --> 00:00:21.495] I 3
|
34 |
+
# [ 00:00:18.239 --> 00:00:18.374] J speaker91
|
35 |
+
# [ 00:00:21.765 --> 00:00:28.515] K speaker91
|
36 |
+
# [ 00:00:27.824 --> 00:00:29.984] L speaker90
|
|
|
37 |
|
38 |
# compute diarization error rate
|
39 |
from pyannote.metrics.diarization import DiarizationErrorRate
|
40 |
metric = DiarizationErrorRate()
|
41 |
metric(SAMPLE_FILE['annotation'], diarization, detailed=True)
|
42 |
+
# {'missed detection': 0.6146562499999995,
|
43 |
+
# 'correct': 19.108875,
|
44 |
+
# 'false alarm': 0.48028125,
|
45 |
+
# 'confusion': 4.626468749999998,
|
46 |
# 'total': 24.349999999999998,
|
47 |
+
# 'diarization error rate': 0.23496534907597527}
|
48 |
```
|