Spaces:
Sleeping
Sleeping
Update sonogram_utility.py
Browse files- sonogram_utility.py +1 -1
sonogram_utility.py
CHANGED
|
@@ -248,7 +248,7 @@ def annotationToDataFrame(myAnnotation):
|
|
| 248 |
for currSpeaker in myAnnotation.labels():
|
| 249 |
if currSpeaker not in speakerDict.keys():
|
| 250 |
speakerDict[currSpeaker] = []
|
| 251 |
-
for currSegment in myAnnotation.subset([
|
| 252 |
speakerDict[currSpeaker].append(currSegment)
|
| 253 |
|
| 254 |
timeSummary = {}
|
|
|
|
| 248 |
for currSpeaker in myAnnotation.labels():
|
| 249 |
if currSpeaker not in speakerDict.keys():
|
| 250 |
speakerDict[currSpeaker] = []
|
| 251 |
+
for currSegment in myAnnotation.subset([currSpeaker]).itersegments():
|
| 252 |
speakerDict[currSpeaker].append(currSegment)
|
| 253 |
|
| 254 |
timeSummary = {}
|