Skip to content

Commit

Permalink
Minor adjustments to speech parser fixing the total duration #8
Browse files Browse the repository at this point in the history
  • Loading branch information
JetamZ committed Oct 22, 2024
1 parent 6f4069d commit 9a80ae5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MetadataExtraction/speechParser2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9a80ae5

Please sign in to comment.