From 25b39f4a8b2a09bef888394aeb7c5fe73c7b0db2 Mon Sep 17 00:00:00 2001 From: tuantvk <30563960+tuantvk@users.noreply.github.com> Date: Fri, 4 Jun 2021 12:15:59 -0700 Subject: [PATCH] Time/VI: update rule Sunday (#611) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: In Vietnam, sunday is "chủ nhật" or "Chúa nhật (Catholic)". Pull Request resolved: https://github.com/facebook/duckling/pull/611 Reviewed By: haoxuany Differential Revision: D28399277 Pulled By: chessai fbshipit-source-id: 26aa7c76cf1f8b8c2ba32e049f7f470a140e3d92 --- Duckling/Ranking/Classifiers/VI_XX.hs | 198 +++++++++++++------------- Duckling/Time/VI/Corpus.hs | 3 + Duckling/Time/VI/Rules.hs | 2 +- 3 files changed, 103 insertions(+), 100 deletions(-) diff --git a/Duckling/Ranking/Classifiers/VI_XX.hs b/Duckling/Ranking/Classifiers/VI_XX.hs index 00e98a5c..7391ddcf 100644 --- a/Duckling/Ranking/Classifiers/VI_XX.hs +++ b/Duckling/Ranking/Classifiers/VI_XX.hs @@ -41,10 +41,10 @@ classifiers likelihoods = HashMap.fromList [], n = 0}}), ("integer (numeric)", Classifier{okData = - ClassData{prior = -0.5108256237659907, unseen = -4.61512051684126, - likelihoods = HashMap.fromList [("", 0.0)], n = 99}, + ClassData{prior = -0.5028732955754956, unseen = -4.634728988229636, + likelihoods = HashMap.fromList [("", 0.0)], n = 101}, koData = - ClassData{prior = -0.916290731874155, unseen = -4.219507705176107, + ClassData{prior = -0.9283390703903296, unseen = -4.219507705176107, likelihoods = HashMap.fromList [("", 0.0)], n = 66}}), ("exactly ", Classifier{okData = @@ -93,21 +93,21 @@ classifiers likelihoods = HashMap.fromList [("", 0.0)], n = 5}}), ("