fix: adjust order of time recognition patterns#353
Conversation
Modified the pattern order in Chinese time recognition rules to improve matching efficiency. Changed from "今天|今日|今日份" to "今天|今日份| 今日" based on usage frequency analysis showing "今天" is more commonly used than "今日份" in queries. fix:调整时间识别模式的顺序 修改了中文时间识别规则中的模式顺序以提高匹配效率。基于使用频率分析,将 模式从"今天|今日|今日份"改为"今天|今日份|今日",因为查询中"今天"比"今日 份"更常用。 Fixes: #370315
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Johnson-zs The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis PR adjusts the order of Chinese time recognition patterns in the semantic rules to prioritize more frequently used expressions and improve matching efficiency for queries like "今天". File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
deepin pr auto review★ 总体评分:100分■ 【总体评价】
■ 【详细分析】
■ 【改进建议代码示例】 diff --git a/src/dfm-search/dfm-search-lib/semantic/rules/zh_CN/time_rules.json b/src/dfm-search/dfm-search-lib/semantic/rules/zh_CN/time_rules.json
index 20f116e..c145c78 100644
--- a/src/dfm-search/dfm-search-lib/semantic/rules/zh_CN/time_rules.json
+++ b/src/dfm-search/dfm-search-lib/semantic/rules/zh_CN/time_rules.json
@@ -8,7 +8,7 @@
"rules": [
{
"id": "time_today",
- "pattern": "今天|今日|今日份",
+ "pattern": "今天|今日份|今日",
"description": "Today",
"enabled": true,
"priority": 200, |
|
/forcemerge |
|
This pr force merged! (status: blocked) |
Modified the pattern order in Chinese time recognition rules to improve
matching efficiency. Changed from "今天|今日|今日份" to "今天|今日份|
今日" based on usage frequency analysis showing "今天" is more commonly
used than "今日份" in queries.
fix:调整时间识别模式的顺序
修改了中文时间识别规则中的模式顺序以提高匹配效率。基于使用频率分析,将
模式从"今天|今日|今日份"改为"今天|今日份|今日",因为查询中"今天"比"今日
份"更常用。
Fixes: #370315
Summary by Sourcery
Bug Fixes: