From ef2b1b1b0e0828a61153dacad0563314e33f109e Mon Sep 17 00:00:00 2001 From: Julien Odent Date: Fri, 28 Aug 2020 09:45:50 -0700 Subject: [PATCH] Time/FR: Some speed up Summary: Guarding against grains, shortening regexes. Reviewed By: jtliao Differential Revision: D23387716 fbshipit-source-id: de84d0efa79c4ae10bd9fbf14e82a724fee1a1f2 --- Duckling/Ranking/Classifiers/FR_XX.hs | 1190 +++++++++++-------------- Duckling/Time/EN/Rules.hs | 6 +- Duckling/Time/FR/Rules.hs | 41 +- 3 files changed, 541 insertions(+), 696 deletions(-) diff --git a/Duckling/Ranking/Classifiers/FR_XX.hs b/Duckling/Ranking/Classifiers/FR_XX.hs index 7ab67012..ce85c335 100644 --- a/Duckling/Ranking/Classifiers/FR_XX.hs +++ b/Duckling/Ranking/Classifiers/FR_XX.hs @@ -254,54 +254,37 @@ classifiers likelihoods = HashMap.fromList [], n = 0}}), ("entre et (interval)", Classifier{okData = - ClassData{prior = -0.3429447511268303, - unseen = -4.1588830833596715, + ClassData{prior = -0.3483066942682157, + unseen = -3.6109179126442243, likelihoods = HashMap.fromList [("le