From e4b88a8b94b2fcb871cbd157db4534948b7aa273 Mon Sep 17 00:00:00 2001 From: Ninglin Du Date: Mon, 23 Sep 2024 17:32:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20'=E4=B9=9D=E6=9C=8818?= =?UTF-8?q?=E5=88=B0=E4=B9=9D=E6=9C=8822'=20=E8=83=BD=E7=BB=84=E5=90=88?= =?UTF-8?q?=E6=88=90=20repeat=20=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/scala/com/xiaomi/duckling/dimension/time/Rules.scala | 1 - .../scala/com/xiaomi/duckling/dimension/time/repeat/Rules.scala | 2 +- .../core/src/main/scala/com/xiaomi/duckling/engine/Engine.scala | 2 +- duckling-fork-chinese/project/Dependencies.scala | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/duckling-fork-chinese/core/src/main/scala/com/xiaomi/duckling/dimension/time/Rules.scala b/duckling-fork-chinese/core/src/main/scala/com/xiaomi/duckling/dimension/time/Rules.scala index 44c9fac7..a1644e79 100644 --- a/duckling-fork-chinese/core/src/main/scala/com/xiaomi/duckling/dimension/time/Rules.scala +++ b/duckling-fork-chinese/core/src/main/scala/com/xiaomi/duckling/dimension/time/Rules.scala @@ -171,7 +171,6 @@ trait Rules extends DimRules { ) private def intersectToken(options: Options, td1: TimeData, td2: TimeData): Option[Token] = { - println(td1, td2) // 破除(y-m)-d和y-(m-d)均构造出来的问题 if (td1.hint == YearMonth && td2.hint == DayOnly) None // 固定顺序,避免(y-m)-(d H-M-S) 以及(y)-(m-d H-M-S)出现 diff --git a/duckling-fork-chinese/core/src/main/scala/com/xiaomi/duckling/dimension/time/repeat/Rules.scala b/duckling-fork-chinese/core/src/main/scala/com/xiaomi/duckling/dimension/time/repeat/Rules.scala index df0b5957..0f52a5a3 100644 --- a/duckling-fork-chinese/core/src/main/scala/com/xiaomi/duckling/dimension/time/repeat/Rules.scala +++ b/duckling-fork-chinese/core/src/main/scala/com/xiaomi/duckling/dimension/time/repeat/Rules.scala @@ -162,7 +162,7 @@ trait Rules extends DimRules with LazyLogging { // 周一到周五早上八点 val ruleIntervalTime = Rule( name = "