Spaces:
Sleeping
Sleeping
Update sonogram_utility.py
Browse files- sonogram_utility.py +1 -1
sonogram_utility.py
CHANGED
|
@@ -296,7 +296,7 @@ def calcCategories(myAnnotation,categories):
|
|
| 296 |
categorySlots.append([])
|
| 297 |
extraCategories.append(speaker)
|
| 298 |
|
| 299 |
-
for timeSegment in myAnnotation.subset
|
| 300 |
categorySlots[targetCategory].append((speaker,timeSegment))
|
| 301 |
# Clean up categories
|
| 302 |
cleanCategories = []
|
|
|
|
| 296 |
categorySlots.append([])
|
| 297 |
extraCategories.append(speaker)
|
| 298 |
|
| 299 |
+
for timeSegment in myAnnotation.subset([speaker]).itersegments():
|
| 300 |
categorySlots[targetCategory].append((speaker,timeSegment))
|
| 301 |
# Clean up categories
|
| 302 |
cleanCategories = []
|