hbredin commited on
Commit
e58cf49
1 Parent(s): 12d57f4

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +17 -18
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:06.747] A speaker90
26
- # [ 00:00:06.747 --> 00:00:07.169] B speaker91
27
- # [ 00:00:07.169 --> 00:00:07.185] C speaker90
28
- # [ 00:00:07.590 --> 00:00:07.624] D speaker90
29
- # [ 00:00:07.624 --> 00:00:08.029] E speaker91
30
- # [ 00:00:08.029 --> 00:00:09.970] F speaker90
31
- # [ 00:00:09.970 --> 00:00:10.982] G speaker91
32
- # [ 00:00:10.459 --> 00:00:14.729] H speaker90
33
- # [ 00:00:14.307 --> 00:00:17.884] I speaker91
34
- # [ 00:00:18.019 --> 00:00:21.512] J 2
35
- # [ 00:00:18.188 --> 00:00:18.407] K speaker91
36
- # [ 00:00:21.765 --> 00:00:28.499] L speaker91
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
- # {'confusion': 6.2540312500000015,
44
- # 'missed detection': 0.5480625000000003,
45
- # 'correct': 17.547906249999997,
46
- # 'false alarm': 0.4811874999999999,
47
  # 'total': 24.349999999999998,
48
- # 'diarization error rate': 0.2991080595482547}
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
  ```