From 9a80ae54f3fe768c151695ed268e4f8edd832d08 Mon Sep 17 00:00:00 2001 From: Matej Date: Tue, 22 Oct 2024 10:22:26 +0200 Subject: [PATCH] Minor adjustments to speech parser fixing the total duration #8 --- MetadataExtraction/speechParser2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MetadataExtraction/speechParser2.py b/MetadataExtraction/speechParser2.py index 931ce04..0ae4f4c 100644 --- a/MetadataExtraction/speechParser2.py +++ b/MetadataExtraction/speechParser2.py @@ -122,8 +122,8 @@ def __processTimestampsCSV(self): if current_speaker == None: current_speaker = row['ID'][1:] else: - if len(intervals) > 0: - total_duration += self.__get_total_duration_ms(intervals) + # if len(intervals) > 0: + # total_duration += self.__get_total_duration_ms(intervals) # if Timelines are missing if len(times) < 1: results.append([None, None, total_duration, unaligned_tokens,