From 2d6954ff3fa5ec39b19eb264cd76d75adfd4dde7 Mon Sep 17 00:00:00 2001 From: Jaikinator Date: Mon, 10 Jul 2023 13:42:34 +0200 Subject: [PATCH] fixed __str__ --- autotranscript/transcript_exporter.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/autotranscript/transcript_exporter.py b/autotranscript/transcript_exporter.py index add3e16..12cdefb 100644 --- a/autotranscript/transcript_exporter.py +++ b/autotranscript/transcript_exporter.py @@ -1,5 +1,7 @@ import json +from sympy import Segment + ALPHABET = [*"abcdefghijklmnopqrstuvwxyz"] @@ -80,8 +82,10 @@ class Transcript: speaker = self.annotation[seq["speaker"]] else: speaker = seq["speaker"] - - fstring += f"{speaker} {seq}: {seq['text']}\n" + + segm = seq["segment"] + + fstring += f"{speaker} {segm}: {seq['text']}\n" return fstring def __repr__(self) -> str: