mirror of
https://github.com/babysor/MockingBird.git
synced 2024-03-22 13:11:31 +08:00
Add proprocess_transcript file
This commit is contained in:
parent
bd0e47e76b
commit
53fe291d3c
10
synthesizer/preprocess_transcript.py
Normal file
10
synthesizer/preprocess_transcript.py
Normal file
|
@ -0,0 +1,10 @@
|
|||
def preprocess_transcript_bznsyp(dict_info, dict_transcript):
|
||||
transList = []
|
||||
for t in dict_transcript:
|
||||
transList.append(t)
|
||||
for i in range(0, len(transList), 2):
|
||||
if not transList[i]:
|
||||
continue
|
||||
key = transList[i].split("\t")[0]
|
||||
transcript = transList[i+1].strip().replace("\n","").replace("\t"," ")
|
||||
dict_info[key] = transcript
|
Loading…
Reference in New Issue
Block a user