added seq to str
This commit is contained in:
@@ -73,15 +73,15 @@ class Transcript:
|
|||||||
"""
|
"""
|
||||||
fstring = ""
|
fstring = ""
|
||||||
|
|
||||||
for id in self.transcript:
|
for _id in self.transcript:
|
||||||
seq = self.transcript[id]
|
seq = self.transcript[_id]
|
||||||
|
|
||||||
if self.annotation:
|
if self.annotation:
|
||||||
speaker = self.annotation[seq["speaker"]]
|
speaker = self.annotation[seq["speaker"]]
|
||||||
else:
|
else:
|
||||||
speaker = seq["speaker"]
|
speaker = seq["speaker"]
|
||||||
|
|
||||||
fstring += f"{speaker}: {seq['text']}\n"
|
fstring += f"{speaker} {seq}: {seq['text']}\n"
|
||||||
return fstring
|
return fstring
|
||||||
|
|
||||||
def __repr__(self) -> str:
|
def __repr__(self) -> str:
|
||||||
|
|||||||
Reference in New Issue
Block a user