From 5c74e9ae7643f79cab828902d77a5b3a5e96566f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stardust=C2=B7=E5=87=8F?= <2225664821@qq.com> Date: Sun, 5 Nov 2023 18:54:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20japanese.py=EF=BC=8C?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- text/japanese.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/text/japanese.py b/text/japanese.py index dde314d..c671859 100644 --- a/text/japanese.py +++ b/text/japanese.py @@ -54,7 +54,7 @@ def text2kata(text: str) -> str: res = [] for parts in parsed: - word, yomi = replace_punctuation(parts["orig"]), parts["pron"].replace("’", "") + word, yomi = replace_punctuation(parts["string"]), parts["pron"].replace("’", "") if yomi: if re.match(_MARKS, yomi): if len(word) > 1: