From b39eb46a166a090755b75b1a6b3df16a59d8f8e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stardust=C2=B7=E5=87=8F?= Date: Tue, 5 Sep 2023 20:35:05 +0800 Subject: [PATCH] clean code --- text/japanese.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/text/japanese.py b/text/japanese.py index 084904c..577c49e 100644 --- a/text/japanese.py +++ b/text/japanese.py @@ -558,11 +558,8 @@ def g2p(norm_text): return phones, tones, word2ph if __name__ == '__main__': - path = "../../../Downloads/transcript_utf8.txt" tokenizer = AutoTokenizer.from_pretrained("./pretrain/bert-base-japanese-v3") text = "hello,こんにちは、世界!……" - # text = 'こんにちは、末期試験に備えて、本当に気合いを入れて勉強しなきゃ。' - # text = '溺れかかっていた乗客は、すべて救助された。' from text.japanese_bert import get_bert_feature text = text_normalize(text)