delimiters
parent
0aff4f556b
commit
7c369e72d4
|
|
@ -142,9 +142,13 @@ class Parser(threading.Thread):
|
||||||
log("stderr:", proc.stderr.decode().strip())
|
log("stderr:", proc.stderr.decode().strip())
|
||||||
log("raw transcript:", result)
|
log("raw transcript:", result)
|
||||||
result = result.replace(">>", "")
|
result = result.replace(">>", "")
|
||||||
result = "".join([i.split("]")[-1] for i in result.split("[")[0]])
|
for pair in [
|
||||||
result = "".join([i.split(")")[-1] for i in result.split("(")[0]])
|
("[", "]")
|
||||||
result = "".join([i.split(">")[-1] for i in result.split("<")[0]])
|
("(", ")")
|
||||||
|
("<", ">")
|
||||||
|
("*", "*")
|
||||||
|
]:
|
||||||
|
result = "".join([i.split(pair[1])[-1] for i in result.split(pair[0])[0]])
|
||||||
if os.environ.get("DEBUG", None):
|
if os.environ.get("DEBUG", None):
|
||||||
log("annotation-free transcript:", result)
|
log("annotation-free transcript:", result)
|
||||||
return result
|
return result
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue