From 53fe291d3cc3b406b941c9903df5aabee43f6a9d Mon Sep 17 00:00:00 2001 From: babysor00 Date: Thu, 2 Sep 2021 09:40:12 +0800 Subject: [PATCH] Add proprocess_transcript file --- synthesizer/preprocess_transcript.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 synthesizer/preprocess_transcript.py diff --git a/synthesizer/preprocess_transcript.py b/synthesizer/preprocess_transcript.py new file mode 100644 index 0000000..e63c54f --- /dev/null +++ b/synthesizer/preprocess_transcript.py @@ -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 \ No newline at end of file