From 445a0c3cde3c500ae9fae402877753269e352d59 Mon Sep 17 00:00:00 2001 From: Ninglin Du Date: Tue, 6 Aug 2024 10:32:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/xiaomi/duckling/dimension/time/repeat/Repeat.scala | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/duckling-fork-chinese/core/src/main/scala/com/xiaomi/duckling/dimension/time/repeat/Repeat.scala b/duckling-fork-chinese/core/src/main/scala/com/xiaomi/duckling/dimension/time/repeat/Repeat.scala index 1ad9df2..d764fcf 100644 --- a/duckling-fork-chinese/core/src/main/scala/com/xiaomi/duckling/dimension/time/repeat/Repeat.scala +++ b/duckling-fork-chinese/core/src/main/scala/com/xiaomi/duckling/dimension/time/repeat/Repeat.scala @@ -85,6 +85,11 @@ case class RepeatValue(interval: Option[DurationData] = None, /** * 参考了 ISO 8601, Repeat = R[n]/[interval form]/Duration * 其中 interval form = a/b, /b, a/, + * 进行细化扩展 + * Repeat_[time/interval grain 时间表达本身的粒度]_[time/interval 时间或区间表达]_{outer period 外层重复的间隔}_{n x inner_period 内层循环的次数和粒度} + * inner_period = 'n' inner repeat grain + * 比如每周三到周五的早上 => Repeat_Hour_2024-08-07T08:00:00/2024-08-07T12:00:00_P1W_3P1D + * * @return */ override def schema: Option[String] = {