huseinzol05
commited on
Commit
•
231abb2
1
Parent(s):
b0ff645
Update README.md
Browse files
README.md
CHANGED
@@ -79,4 +79,22 @@ language:
|
|
79 |
|
80 |
- 90% similar, from 10492 unique speakers become 6085 unique speakers, https://github.com/huseinzol05/malaya-speech/blob/master/data/youtube/mapping-youtube-speakers-90.json
|
81 |
- 85% similar, from 10492 unique speakers become 4312 unique speakers, https://github.com/huseinzol05/malaya-speech/blob/master/data/youtube/mapping-youtube-speakers-85.json
|
82 |
-
- 80% similar, from 10492 unique speakers become 2912 unique speakers, https://github.com/huseinzol05/malaya-speech/blob/master/data/youtube/mapping-youtube-speakers-80.json
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
|
80 |
- 90% similar, from 10492 unique speakers become 6085 unique speakers, https://github.com/huseinzol05/malaya-speech/blob/master/data/youtube/mapping-youtube-speakers-90.json
|
81 |
- 85% similar, from 10492 unique speakers become 4312 unique speakers, https://github.com/huseinzol05/malaya-speech/blob/master/data/youtube/mapping-youtube-speakers-85.json
|
82 |
+
- 80% similar, from 10492 unique speakers become 2912 unique speakers, https://github.com/huseinzol05/malaya-speech/blob/master/data/youtube/mapping-youtube-speakers-80.json
|
83 |
+
|
84 |
+
Speaker name defined as,
|
85 |
+
|
86 |
+
```python
|
87 |
+
import os
|
88 |
+
import pickle
|
89 |
+
|
90 |
+
pkl = 'filename.pkl'
|
91 |
+
with open(pkl, 'rb') as fopen:
|
92 |
+
data = pickle.load(fopen)
|
93 |
+
|
94 |
+
filename = os.path.split(pkl)[1].replace('.pkl', '')
|
95 |
+
for result in data:
|
96 |
+
speaker_name = f'{filename}-{speaker}'
|
97 |
+
actual_speaker = unique_speakers[speaker_name]
|
98 |
+
```
|
99 |
+
|
100 |
+
Check example at https://github.com/huseinzol05/malaya-speech/blob/master/data/youtube/calculate-lengths-80.ipynb
|