fixed __str__
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
import json
|
import json
|
||||||
|
|
||||||
|
from sympy import Segment
|
||||||
|
|
||||||
ALPHABET = [*"abcdefghijklmnopqrstuvwxyz"]
|
ALPHABET = [*"abcdefghijklmnopqrstuvwxyz"]
|
||||||
|
|
||||||
|
|
||||||
@@ -81,7 +83,9 @@ class Transcript:
|
|||||||
else:
|
else:
|
||||||
speaker = seq["speaker"]
|
speaker = seq["speaker"]
|
||||||
|
|
||||||
fstring += f"{speaker} {seq}: {seq['text']}\n"
|
segm = seq["segment"]
|
||||||
|
|
||||||
|
fstring += f"{speaker} {segm}: {seq['text']}\n"
|
||||||
return fstring
|
return fstring
|
||||||
|
|
||||||
def __repr__(self) -> str:
|
def __repr__(self) -> str:
|
||||||
|
|||||||
Reference in New Issue
Block a user