From cfb400278f12bf2979ee223d07b65522aa0c76df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xingchen=20Song=28=E5=AE=8B=E6=98=9F=E8=BE=B0=29?= Date: Wed, 5 Jun 2024 18:18:50 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=20fix=20itn=20=E6=B4=9E>0,=E6=8B=90>7=20(?= =?UTF-8?q?#235)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- itn/chinese/data/number/digit.tsv | 10 ++++++++++ itn/chinese/data/number/zero.tsv | 1 + itn/chinese/test/data/cardinal.txt | 1 + 3 files changed, 12 insertions(+) diff --git a/itn/chinese/data/number/digit.tsv b/itn/chinese/data/number/digit.tsv index cea5c81..8191e61 100644 --- a/itn/chinese/data/number/digit.tsv +++ b/itn/chinese/data/number/digit.tsv @@ -1,11 +1,21 @@ 一 1 幺 1 +壹 1 二 2 两 2 +贰 2 三 3 +叁 3 四 4 +肆 4 五 5 +伍 5 六 6 +陆 6 七 7 +柒 7 +拐 7 八 8 +捌 8 九 9 +玖 9 diff --git a/itn/chinese/data/number/zero.tsv b/itn/chinese/data/number/zero.tsv index 4b41207..e10ee9e 100644 --- a/itn/chinese/data/number/zero.tsv +++ b/itn/chinese/data/number/zero.tsv @@ -1 +1,2 @@ 零 0 +洞 0 diff --git a/itn/chinese/test/data/cardinal.txt b/itn/chinese/test/data/cardinal.txt index fcc1fc8..5ed4676 100644 --- a/itn/chinese/test/data/cardinal.txt +++ b/itn/chinese/test/data/cardinal.txt @@ -26,3 +26,4 @@ 九幺幺是报警电话 => 911是报警电话 尾号幺七零二 => 尾号1702 尾号一二三四 => 尾号1234 +幺八五洞幺拐两零柒幺玖 => 18501720719