From bf3a91f413fce495fe08ab3f45f266fd5682b309 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 15 Jul 2026 00:27:29 +0000 Subject: [PATCH 1/3] =?UTF-8?q?Add=20=E9=80=B1-related=20phrase=20entries?= =?UTF-8?q?=20for=20=E8=BF=99=E5=91=A8,=20=E9=82=A3=E5=91=A8,=20=E8=8B=A5?= =?UTF-8?q?=E5=B9=B2=E5=91=A8=20and=20=E5=91=A8=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Convert demonstrative/quantified week expressions and the financial term 周线 (weekly candlestick chart) to 週, while adding longer phrase entries for 周围/周边/周遭 so segmentation keeps them as 周-based words. Detailed Changes: - **STPhrases.txt**: - Add 这周/那周/若干周 -> 這週/那週/若干週 and 周线 -> 週線. - Add 这/那/若干 + 周围/周边/周遭 identity-style entries to prevent the new time-word keys from stranding 圍/邊/遭 after a wrong 週. - **testcases.json**: - Add case_065_s2x and case_066_t2x covering s2t/s2tw and t2s round-trip. --- data/dictionary/STPhrases.txt | 13 +++++++++++++ test/testcases/testcases.json | 15 +++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/data/dictionary/STPhrases.txt b/data/dictionary/STPhrases.txt index 9b164b93a..a72004478 100644 --- a/data/dictionary/STPhrases.txt +++ b/data/dictionary/STPhrases.txt @@ -14742,6 +14742,7 @@ 周章 周章 周章狼狈 周章狼狽 周筱涵 周筱涵 +周线 週線 周经凯 周經凱 周给 周給 周缘 周緣 @@ -40684,6 +40685,10 @@ 若干 若干 若干个 若干個 若干人 若干人 +若干周 若干週 +若干周围 若干周圍 +若干周边 若干周邊 +若干周遭 若干周遭 若干年 若干年 若虫 若蟲 苦了 苦了 @@ -44611,6 +44616,10 @@ 这只 這隻 这只不 這只不 这只是 這只是 +这周 這週 +这周围 這周圍 +这周边 這周邊 +这周遭 這周遭 这回 這回 这回事 這回事 这当儿 這當兒 @@ -45202,6 +45211,10 @@ 那只是 那只是 那只有 那只有 那台 那臺 +那周 那週 +那周围 那周圍 +那周边 那周邊 +那周遭 那周遭 那回 那回 那当儿 那當兒 那斯达克 那斯達克 diff --git a/test/testcases/testcases.json b/test/testcases/testcases.json index 1e98ec2b8..50478d502 100755 --- a/test/testcases/testcases.json +++ b/test/testcases/testcases.json @@ -459,6 +459,21 @@ "tw2t": "幺麼小丑 幺麼小醜 小丑丫鬟 小醜丫鬟" } }, + { + "id": "case_065_s2x", + "input": "这周复习 那周开会 若干周后 周线图 这周围 那周围 这周边 那周边 这周遭 那周遭 若干周边设备", + "expected": { + "s2t": "這週複習 那週開會 若干週後 週線圖 這周圍 那周圍 這周邊 那周邊 這周遭 那周遭 若干周邊設備", + "s2tw": "這週複習 那週開會 若干週後 週線圖 這周圍 那周圍 這周邊 那周邊 這周遭 那周遭 若干周邊設備" + } + }, + { + "id": "case_066_t2x", + "input": "這週複習 週線圖 這周圍 那周邊 若干周邊設備", + "expected": { + "t2s": "这周复习 周线图 这周围 那周边 若干周边设备" + } + }, { "id": "BYVoid_OpenCC_Issue_475_s2twp", "input": "仙童半导体厂 人工智能借用", From ae7f6256bebe40477075ec4c701f22b013366860 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 15 Jul 2026 00:38:04 +0000 Subject: [PATCH 2/3] =?UTF-8?q?Add=20=E9=80=B1=20entries=20for=20=E5=87=A0?= =?UTF-8?q?=E5=91=A8=20and=20=E5=A4=9A=E5=B0=91=E5=91=A8=20families?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cover 几周/多少周 and every existing X几 key (十几, 几十, 好几, 这几, 那几, 哪几, 过几, 第几) that would otherwise strand a following 周 in segmentation, plus 周围/周边/周遭 protection entries for the new short keys. --- data/dictionary/STPhrases.txt | 16 ++++++++++++++++ test/testcases/testcases.json | 15 +++++++++++++++ 2 files changed, 31 insertions(+) diff --git a/data/dictionary/STPhrases.txt b/data/dictionary/STPhrases.txt index 5180d4a01..cb05687a0 100644 --- a/data/dictionary/STPhrases.txt +++ b/data/dictionary/STPhrases.txt @@ -6809,6 +6809,7 @@ 几十个 幾十個 几十人 幾十人 几十亿 幾十億 +几十周 幾十週 几十年 幾十年 几千 幾千 几千万 幾千萬 @@ -6828,6 +6829,10 @@ 几吋 幾吋 几名 幾名 几员 幾員 +几周 幾週 +几周围 幾周圍 +几周边 幾周邊 +几周遭 幾周遭 几回 幾回 几回价 幾回價 几因 幾因 @@ -9179,6 +9184,7 @@ 十几元 十幾元 十几分 十幾分 十几号 十幾號 +十几周 十幾週 十几块 十幾塊 十几天 十幾天 十几岁 十幾歲 @@ -15083,6 +15089,7 @@ 哪个月 哪個月 哪几 哪幾 哪几个 哪幾個 +哪几周 哪幾週 哪几天 哪幾天 哪几次 哪幾次 哪只 哪隻 @@ -17058,6 +17065,10 @@ 多媒体杂志 多媒體雜誌 多媒体简报系统 多媒體簡報系統 多少只 多少隻 +多少周 多少週 +多少周围 多少周圍 +多少周边 多少周邊 +多少周遭 多少周遭 多层复 多層複 多层复迭 多層複迭 多干 多幹 @@ -17966,6 +17977,7 @@ 好几十万 好幾十萬 好几千 好幾千 好几千万 好幾千萬 +好几周 好幾週 好几天 好幾天 好几年 好幾年 好几百 好幾百 @@ -37403,6 +37415,7 @@ 第几个 第幾個 第几册 第幾冊 第几名 第幾名 +第几周 第幾週 第几回 第幾回 第几次 第幾次 第几章 第幾章 @@ -44483,6 +44496,7 @@ 过冬 過冬 过冲 過沖 过几 過幾 +过几周 過幾週 过出 過出 过动症 過動症 过历 過歷 @@ -44609,6 +44623,7 @@ 这几个 這幾個 这几个人 這幾個人 这几个月 這幾個月 +这几周 這幾週 这几天 這幾天 这几次 這幾次 这出剧 這齣劇 @@ -45202,6 +45217,7 @@ 那借 那借 那几 那幾 那几个 那幾個 +那几周 那幾週 那几天 那幾天 那几次 那幾次 那出剧 那齣劇 diff --git a/test/testcases/testcases.json b/test/testcases/testcases.json index a859f786c..020804037 100755 --- a/test/testcases/testcases.json +++ b/test/testcases/testcases.json @@ -489,6 +489,21 @@ "t2s": "这周复习 周线图 这周围 那周边 若干周边设备" } }, + { + "id": "case_067_s2x", + "input": "几周之后 过几周 好几周 十几周 几十周 这几周 那几周 哪几周 第几周 多少周 几周围 多少周边产品 茶几周围", + "expected": { + "s2t": "幾週之後 過幾週 好幾週 十幾週 幾十週 這幾週 那幾週 哪幾週 第幾週 多少週 幾周圍 多少周邊產品 茶几周圍", + "s2tw": "幾週之後 過幾週 好幾週 十幾週 幾十週 這幾週 那幾週 哪幾週 第幾週 多少週 幾周圍 多少周邊產品 茶几周圍" + } + }, + { + "id": "case_068_t2x", + "input": "幾週之後 好幾週 第幾週 多少週 多少周邊產品 茶几周圍", + "expected": { + "t2s": "几周之后 好几周 第几周 多少周 多少周边产品 茶几周围" + } + }, { "id": "BYVoid_OpenCC_Issue_475_s2twp", "input": "仙童半导体厂 人工智能借用", From 1c5e9f612a11bfab3c05c6dff516ac9d3dc0c89f Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 15 Jul 2026 00:45:31 +0000 Subject: [PATCH 3/3] Retrigger CI after transient Windows Bazel test flake