From 2f9f7c4b317e0668594aa221bf4166c3f27f7496 Mon Sep 17 00:00:00 2001 From: EvelynH Date: Mon, 17 Apr 2023 16:27:57 +0800 Subject: [PATCH 1/3] Update download_video.py solve SSL: CERTIFICATE_VERIFY_FAILED problem --- download_video.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/download_video.py b/download_video.py index 05ccce7..d253f0b 100644 --- a/download_video.py +++ b/download_video.py @@ -28,7 +28,7 @@ def generate_infos(): def download_video(info): link = info["link"] filename = info["filename"] - os.system(f"youtube-dl -f 0 {link} -o ./video_data/{filename}.mp4") + os.system(f"youtube-dl -f 0 {link} -o ./video_data/{filename}.mp4" --no-check-certificate) if __name__ == "__main__": From b3e7ad0e504f798ddea31aedf021e99ec7d12a9c Mon Sep 17 00:00:00 2001 From: Songting <112609742+Plachtaa@users.noreply.github.com> Date: Wed, 19 Apr 2023 17:24:39 +0800 Subject: [PATCH 2/3] Update download_video.py --- download_video.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/download_video.py b/download_video.py index d253f0b..3ab1a7f 100644 --- a/download_video.py +++ b/download_video.py @@ -28,7 +28,7 @@ def generate_infos(): def download_video(info): link = info["link"] filename = info["filename"] - os.system(f"youtube-dl -f 0 {link} -o ./video_data/{filename}.mp4" --no-check-certificate) + os.system(f"youtube-dl -f 0 {link} -o ./video_data/{filename}.mp4 --no-check-certificate") if __name__ == "__main__": From 8e1893daf782b010a7222a1beced30eb704a8cdd Mon Sep 17 00:00:00 2001 From: Songting <112609742+Plachtaa@users.noreply.github.com> Date: Thu, 20 Apr 2023 15:19:52 +0800 Subject: [PATCH 3/3] Update cleaners.py --- text/cleaners.py | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/text/cleaners.py b/text/cleaners.py index 6c7b809..adc6fd8 100644 --- a/text/cleaners.py +++ b/text/cleaners.py @@ -29,19 +29,14 @@ def korean_cleaners(text): return text -# def chinese_cleaners(text): -# '''Pipeline for Chinese text''' -# text = number_to_chinese(text) -# text = chinese_to_bopomofo(text) -# text = latin_to_bopomofo(text) -# text = re.sub(r'([ˉˊˇˋ˙])$', r'\1。', text) -# return text - def chinese_cleaners(text): - from pypinyin import Style, pinyin + '''Pipeline for Chinese text''' text = text.replace("[ZH]", "") - phones = [phone[0] for phone in pinyin(text, style=Style.TONE3)] - return ' '.join(phones) + text = number_to_chinese(text) + text = chinese_to_bopomofo(text) + text = latin_to_bopomofo(text) + text = re.sub(r'([ˉˊˇˋ˙])$', r'\1。', text) + return text def zh_ja_mixture_cleaners(text):