mirror of
https://github.com/facebook/duckling.git
synced 2024-09-11 21:27:13 +03:00
Fix a problem with parsing ES time phrase
Summary: The root cause was the error in parsing the ES numeral value [1-9] that spelled with two words instead of one. For example "cero dos" should be parsed the as "dos". Currently it's being as two numeral values: 0 and 3. Reviewed By: chinmay87 Differential Revision: D22162804 fbshipit-source-id: 949956935a21e742f6788e7afa788ff728dd9a8d
This commit is contained in:
parent
097b9260d5
commit
8cf3fdb581
@ -42,4 +42,25 @@ allExamples =
|
||||
, examples (NumeralValue 1200000) ["1200000", "1200K"]
|
||||
, examples (NumeralValue (-1200000)) ["-1200000", "-1200K"]
|
||||
, examples (NumeralValue 1.5) ["1 punto cinco", "una punto cinco"]
|
||||
, examples (NumeralValue 1) ["cero uno", "zero uno"]
|
||||
, examples (NumeralValue 2) ["cero dos", "zero dos"]
|
||||
, examples (NumeralValue 3)
|
||||
[
|
||||
"cero tres",
|
||||
"cero trés",
|
||||
"zero tres",
|
||||
"zero trés"
|
||||
]
|
||||
, examples (NumeralValue 4) ["cero cuatro", "zero cuatro"]
|
||||
, examples (NumeralValue 5) ["cero cinco", "zero cinco"]
|
||||
, examples (NumeralValue 6)
|
||||
[
|
||||
"cero seis",
|
||||
"cero séis",
|
||||
"zero seis",
|
||||
"zero séis"
|
||||
]
|
||||
, examples (NumeralValue 7) ["cero siete", "zero siete"]
|
||||
, examples (NumeralValue 8) ["cero ocho", "zero ocho"]
|
||||
, examples (NumeralValue 9) ["cero nueve", "zero nueve"]
|
||||
]
|
||||
|
@ -7,6 +7,8 @@
|
||||
|
||||
{-# LANGUAGE GADTs #-}
|
||||
{-# LANGUAGE OverloadedStrings #-}
|
||||
{-# LANGUAGE LambdaCase #-}
|
||||
|
||||
module Duckling.Numeral.ES.Rules (rules) where
|
||||
|
||||
import qualified Data.HashMap.Strict as HashMap
|
||||
@ -225,9 +227,28 @@ ruleNumeralDotNumeral = Rule
|
||||
_ -> Nothing
|
||||
}
|
||||
|
||||
ruleBelowTenWithTwoDigits :: Rule
|
||||
ruleBelowTenWithTwoDigits = Rule
|
||||
{
|
||||
name = "integer (0-9) with two digits"
|
||||
, pattern =
|
||||
[
|
||||
regex "(c|z)ero"
|
||||
, numberBetween 1 10
|
||||
]
|
||||
, prod = \case
|
||||
(
|
||||
_:
|
||||
Token Numeral NumeralData { TNumeral.value = v }:
|
||||
_
|
||||
) -> double v
|
||||
_ -> Nothing
|
||||
}
|
||||
|
||||
rules :: [Rule]
|
||||
rules =
|
||||
[ ruleNumeral
|
||||
[ ruleBelowTenWithTwoDigits
|
||||
, ruleNumeral
|
||||
, ruleNumeral2
|
||||
, ruleNumeral3
|
||||
, ruleNumeral4
|
||||
|
@ -434,24 +434,25 @@ classifiers
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("a las <time-of-day>",
|
||||
Classifier{okData =
|
||||
ClassData{prior = -0.12260232209233239,
|
||||
unseen = -4.634728988229636,
|
||||
ClassData{prior = -0.11778303565638351,
|
||||
unseen = -4.672828834461907,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("<hour-of-day> and half", -3.2386784521643803),
|
||||
("<time-of-day> horas", -3.9318256327243257),
|
||||
("<hour-of-day> and quarter", -3.0155349008501706),
|
||||
("time-of-day (latent)", -1.2237754316221157),
|
||||
("<hour-of-day> and <relative minutes>", -2.833213344056216),
|
||||
("<time-of-day> am|pm", -3.9318256327243257),
|
||||
[("<hour-of-day> and half", -3.2771447329921766),
|
||||
("<time-of-day> horas", -3.970291913552122),
|
||||
("<hour-of-day> and quarter", -3.054001181677967),
|
||||
("time-of-day (latent)", -1.1977031913123406),
|
||||
("<hour-of-day> and <relative minutes>", -2.871679624884012),
|
||||
("<time-of-day> am|pm", -3.970291913552122),
|
||||
("<hour-of-day> minus <integer> (as relative minutes)",
|
||||
-3.9318256327243257),
|
||||
-3.970291913552122),
|
||||
("<hour-of-day> minus quarter (as relative minutes)",
|
||||
-3.5263605246161616),
|
||||
("hour", -1.1592369104845446), ("minute", -1.8523840910444898)],
|
||||
n = 46},
|
||||
-3.5648268054439574),
|
||||
("hour", -1.1370785694959058), ("minute", -1.890850371872286)],
|
||||
n = 48},
|
||||
koData =
|
||||
ClassData{prior = -2.159484249353372, unseen = -3.1354942159291497,
|
||||
ClassData{prior = -2.1972245773362196,
|
||||
unseen = -3.1354942159291497,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("time-of-day (latent)", -1.4816045409242156),
|
||||
@ -647,13 +648,12 @@ classifiers
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("number (0..15)",
|
||||
Classifier{okData =
|
||||
ClassData{prior = -3.846628082779605e-2,
|
||||
unseen = -3.970291913552122,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 51},
|
||||
ClassData{prior = -7.020425867324857e-2,
|
||||
unseen = -4.04305126783455,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 55},
|
||||
koData =
|
||||
ClassData{prior = -3.2771447329921766,
|
||||
unseen = -1.3862943611198906,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 2}}),
|
||||
ClassData{prior = -2.691243082785829, unseen = -1.791759469228055,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 4}}),
|
||||
("D\237a Internacional de las Cooperativas",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -1.0986122886681098,
|
||||
@ -766,20 +766,21 @@ classifiers
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 2}}),
|
||||
("time-of-day (latent)",
|
||||
Classifier{okData =
|
||||
ClassData{prior = -0.14518200984449783,
|
||||
unseen = -3.5553480614894135,
|
||||
ClassData{prior = -0.23483959107740107,
|
||||
unseen = -3.6375861597263857,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("integer (numeric)", -1.2237754316221157),
|
||||
("number (0..15)", -0.3483066942682157)],
|
||||
n = 32},
|
||||
[("integer (numeric)", -1.3083328196501787),
|
||||
("number (0..15)", -0.3528213746227423)],
|
||||
n = 34},
|
||||
koData =
|
||||
ClassData{prior = -2.001480000210124, unseen = -2.0794415416798357,
|
||||
ClassData{prior = -1.563975538357343, unseen = -2.5649493574615367,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("integer (numeric)", -0.5596157879354228),
|
||||
("number (0..15)", -0.8472978603872037)],
|
||||
n = 5}}),
|
||||
[("integer (numeric)", -1.0986122886681098),
|
||||
("number (0..15)", -0.8754687373538999),
|
||||
("integer (0-9) with two digits", -1.3862943611198906)],
|
||||
n = 9}}),
|
||||
("<hour-of-day> and <relative minutes>",
|
||||
Classifier{okData =
|
||||
ClassData{prior = -0.3364722366212129, unseen = -3.332204510175204,
|
||||
@ -909,21 +910,22 @@ classifiers
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("<time-of-day> am|pm",
|
||||
Classifier{okData =
|
||||
ClassData{prior = -0.40546510810816444,
|
||||
unseen = -2.0794415416798357,
|
||||
ClassData{prior = -0.8109302162163288, unseen = -2.639057329615259,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("a las <time-of-day>", -1.252762968495368),
|
||||
("time-of-day (latent)", -1.252762968495368),
|
||||
("hour", -0.8472978603872037)],
|
||||
n = 2},
|
||||
[("a las <time-of-day>", -1.8718021769015913),
|
||||
("time-of-day (latent)", -1.8718021769015913),
|
||||
("hour", -1.466337068793427), ("minute", -1.466337068793427),
|
||||
("<hour-of-day> <integer> (as relative minutes)",
|
||||
-1.466337068793427)],
|
||||
n = 4},
|
||||
koData =
|
||||
ClassData{prior = -1.0986122886681098, unseen = -1.791759469228055,
|
||||
ClassData{prior = -0.587786664902119, unseen = -2.772588722239781,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("time-of-day (latent)", -0.916290731874155),
|
||||
("hour", -0.916290731874155)],
|
||||
n = 1}}),
|
||||
n = 5}}),
|
||||
("n proximas <cycle>",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -2.5649493574615367,
|
||||
@ -1277,6 +1279,25 @@ classifiers
|
||||
koData =
|
||||
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("<hour-of-day> <integer> (as relative minutes)",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -1.9459101490553135,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("a las <time-of-day>integer (0-9) with two digits",
|
||||
-0.6931471805599453),
|
||||
("hour", -0.6931471805599453)],
|
||||
n = 2},
|
||||
koData =
|
||||
ClassData{prior = -infinity, unseen = -1.0986122886681098,
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("integer (0-9) with two digits",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -1.3862943611198906,
|
||||
likelihoods = HashMap.fromList [("number (0..15)", 0.0)], n = 2},
|
||||
koData =
|
||||
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("ce <time>",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -2.833213344056216,
|
||||
|
@ -434,24 +434,25 @@ classifiers
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("a las <time-of-day>",
|
||||
Classifier{okData =
|
||||
ClassData{prior = -0.12260232209233239,
|
||||
unseen = -4.634728988229636,
|
||||
ClassData{prior = -0.11778303565638351,
|
||||
unseen = -4.672828834461907,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("<hour-of-day> and half", -3.2386784521643803),
|
||||
("<time-of-day> horas", -3.9318256327243257),
|
||||
("<hour-of-day> and quarter", -3.0155349008501706),
|
||||
("time-of-day (latent)", -1.2237754316221157),
|
||||
("<hour-of-day> and <relative minutes>", -2.833213344056216),
|
||||
("<time-of-day> am|pm", -3.9318256327243257),
|
||||
[("<hour-of-day> and half", -3.2771447329921766),
|
||||
("<time-of-day> horas", -3.970291913552122),
|
||||
("<hour-of-day> and quarter", -3.054001181677967),
|
||||
("time-of-day (latent)", -1.1977031913123406),
|
||||
("<hour-of-day> and <relative minutes>", -2.871679624884012),
|
||||
("<time-of-day> am|pm", -3.970291913552122),
|
||||
("<hour-of-day> minus <integer> (as relative minutes)",
|
||||
-3.9318256327243257),
|
||||
-3.970291913552122),
|
||||
("<hour-of-day> minus quarter (as relative minutes)",
|
||||
-3.5263605246161616),
|
||||
("hour", -1.1592369104845446), ("minute", -1.8523840910444898)],
|
||||
n = 46},
|
||||
-3.5648268054439574),
|
||||
("hour", -1.1370785694959058), ("minute", -1.890850371872286)],
|
||||
n = 48},
|
||||
koData =
|
||||
ClassData{prior = -2.159484249353372, unseen = -3.1354942159291497,
|
||||
ClassData{prior = -2.1972245773362196,
|
||||
unseen = -3.1354942159291497,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("time-of-day (latent)", -1.4816045409242156),
|
||||
@ -647,13 +648,12 @@ classifiers
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("number (0..15)",
|
||||
Classifier{okData =
|
||||
ClassData{prior = -3.846628082779605e-2,
|
||||
unseen = -3.970291913552122,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 51},
|
||||
ClassData{prior = -7.020425867324857e-2,
|
||||
unseen = -4.04305126783455,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 55},
|
||||
koData =
|
||||
ClassData{prior = -3.2771447329921766,
|
||||
unseen = -1.3862943611198906,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 2}}),
|
||||
ClassData{prior = -2.691243082785829, unseen = -1.791759469228055,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 4}}),
|
||||
("D\237a Internacional de las Cooperativas",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -1.0986122886681098,
|
||||
@ -766,20 +766,21 @@ classifiers
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 2}}),
|
||||
("time-of-day (latent)",
|
||||
Classifier{okData =
|
||||
ClassData{prior = -0.14518200984449783,
|
||||
unseen = -3.5553480614894135,
|
||||
ClassData{prior = -0.23483959107740107,
|
||||
unseen = -3.6375861597263857,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("integer (numeric)", -1.2237754316221157),
|
||||
("number (0..15)", -0.3483066942682157)],
|
||||
n = 32},
|
||||
[("integer (numeric)", -1.3083328196501787),
|
||||
("number (0..15)", -0.3528213746227423)],
|
||||
n = 34},
|
||||
koData =
|
||||
ClassData{prior = -2.001480000210124, unseen = -2.0794415416798357,
|
||||
ClassData{prior = -1.563975538357343, unseen = -2.5649493574615367,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("integer (numeric)", -0.5596157879354228),
|
||||
("number (0..15)", -0.8472978603872037)],
|
||||
n = 5}}),
|
||||
[("integer (numeric)", -1.0986122886681098),
|
||||
("number (0..15)", -0.8754687373538999),
|
||||
("integer (0-9) with two digits", -1.3862943611198906)],
|
||||
n = 9}}),
|
||||
("<hour-of-day> and <relative minutes>",
|
||||
Classifier{okData =
|
||||
ClassData{prior = -0.3364722366212129, unseen = -3.332204510175204,
|
||||
@ -909,21 +910,22 @@ classifiers
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("<time-of-day> am|pm",
|
||||
Classifier{okData =
|
||||
ClassData{prior = -0.40546510810816444,
|
||||
unseen = -2.0794415416798357,
|
||||
ClassData{prior = -0.8109302162163288, unseen = -2.639057329615259,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("a las <time-of-day>", -1.252762968495368),
|
||||
("time-of-day (latent)", -1.252762968495368),
|
||||
("hour", -0.8472978603872037)],
|
||||
n = 2},
|
||||
[("a las <time-of-day>", -1.8718021769015913),
|
||||
("time-of-day (latent)", -1.8718021769015913),
|
||||
("hour", -1.466337068793427), ("minute", -1.466337068793427),
|
||||
("<hour-of-day> <integer> (as relative minutes)",
|
||||
-1.466337068793427)],
|
||||
n = 4},
|
||||
koData =
|
||||
ClassData{prior = -1.0986122886681098, unseen = -1.791759469228055,
|
||||
ClassData{prior = -0.587786664902119, unseen = -2.772588722239781,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("time-of-day (latent)", -0.916290731874155),
|
||||
("hour", -0.916290731874155)],
|
||||
n = 1}}),
|
||||
n = 5}}),
|
||||
("n proximas <cycle>",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -2.5649493574615367,
|
||||
@ -1277,6 +1279,25 @@ classifiers
|
||||
koData =
|
||||
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("<hour-of-day> <integer> (as relative minutes)",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -1.9459101490553135,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("a las <time-of-day>integer (0-9) with two digits",
|
||||
-0.6931471805599453),
|
||||
("hour", -0.6931471805599453)],
|
||||
n = 2},
|
||||
koData =
|
||||
ClassData{prior = -infinity, unseen = -1.0986122886681098,
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("integer (0-9) with two digits",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -1.3862943611198906,
|
||||
likelihoods = HashMap.fromList [("number (0..15)", 0.0)], n = 2},
|
||||
koData =
|
||||
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("ce <time>",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -2.833213344056216,
|
||||
|
@ -434,24 +434,25 @@ classifiers
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("a las <time-of-day>",
|
||||
Classifier{okData =
|
||||
ClassData{prior = -0.12260232209233239,
|
||||
unseen = -4.634728988229636,
|
||||
ClassData{prior = -0.11778303565638351,
|
||||
unseen = -4.672828834461907,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("<hour-of-day> and half", -3.2386784521643803),
|
||||
("<time-of-day> horas", -3.9318256327243257),
|
||||
("<hour-of-day> and quarter", -3.0155349008501706),
|
||||
("time-of-day (latent)", -1.2237754316221157),
|
||||
("<hour-of-day> and <relative minutes>", -2.833213344056216),
|
||||
("<time-of-day> am|pm", -3.9318256327243257),
|
||||
[("<hour-of-day> and half", -3.2771447329921766),
|
||||
("<time-of-day> horas", -3.970291913552122),
|
||||
("<hour-of-day> and quarter", -3.054001181677967),
|
||||
("time-of-day (latent)", -1.1977031913123406),
|
||||
("<hour-of-day> and <relative minutes>", -2.871679624884012),
|
||||
("<time-of-day> am|pm", -3.970291913552122),
|
||||
("<hour-of-day> minus <integer> (as relative minutes)",
|
||||
-3.9318256327243257),
|
||||
-3.970291913552122),
|
||||
("<hour-of-day> minus quarter (as relative minutes)",
|
||||
-3.5263605246161616),
|
||||
("hour", -1.1592369104845446), ("minute", -1.8523840910444898)],
|
||||
n = 46},
|
||||
-3.5648268054439574),
|
||||
("hour", -1.1370785694959058), ("minute", -1.890850371872286)],
|
||||
n = 48},
|
||||
koData =
|
||||
ClassData{prior = -2.159484249353372, unseen = -3.1354942159291497,
|
||||
ClassData{prior = -2.1972245773362196,
|
||||
unseen = -3.1354942159291497,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("time-of-day (latent)", -1.4816045409242156),
|
||||
@ -647,13 +648,12 @@ classifiers
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("number (0..15)",
|
||||
Classifier{okData =
|
||||
ClassData{prior = -3.846628082779605e-2,
|
||||
unseen = -3.970291913552122,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 51},
|
||||
ClassData{prior = -7.020425867324857e-2,
|
||||
unseen = -4.04305126783455,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 55},
|
||||
koData =
|
||||
ClassData{prior = -3.2771447329921766,
|
||||
unseen = -1.3862943611198906,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 2}}),
|
||||
ClassData{prior = -2.691243082785829, unseen = -1.791759469228055,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 4}}),
|
||||
("D\237a Internacional de las Cooperativas",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -1.0986122886681098,
|
||||
@ -766,20 +766,21 @@ classifiers
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 2}}),
|
||||
("time-of-day (latent)",
|
||||
Classifier{okData =
|
||||
ClassData{prior = -0.14518200984449783,
|
||||
unseen = -3.5553480614894135,
|
||||
ClassData{prior = -0.23483959107740107,
|
||||
unseen = -3.6375861597263857,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("integer (numeric)", -1.2237754316221157),
|
||||
("number (0..15)", -0.3483066942682157)],
|
||||
n = 32},
|
||||
[("integer (numeric)", -1.3083328196501787),
|
||||
("number (0..15)", -0.3528213746227423)],
|
||||
n = 34},
|
||||
koData =
|
||||
ClassData{prior = -2.001480000210124, unseen = -2.0794415416798357,
|
||||
ClassData{prior = -1.563975538357343, unseen = -2.5649493574615367,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("integer (numeric)", -0.5596157879354228),
|
||||
("number (0..15)", -0.8472978603872037)],
|
||||
n = 5}}),
|
||||
[("integer (numeric)", -1.0986122886681098),
|
||||
("number (0..15)", -0.8754687373538999),
|
||||
("integer (0-9) with two digits", -1.3862943611198906)],
|
||||
n = 9}}),
|
||||
("<hour-of-day> and <relative minutes>",
|
||||
Classifier{okData =
|
||||
ClassData{prior = -0.3364722366212129, unseen = -3.332204510175204,
|
||||
@ -909,21 +910,22 @@ classifiers
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("<time-of-day> am|pm",
|
||||
Classifier{okData =
|
||||
ClassData{prior = -0.40546510810816444,
|
||||
unseen = -2.0794415416798357,
|
||||
ClassData{prior = -0.8109302162163288, unseen = -2.639057329615259,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("a las <time-of-day>", -1.252762968495368),
|
||||
("time-of-day (latent)", -1.252762968495368),
|
||||
("hour", -0.8472978603872037)],
|
||||
n = 2},
|
||||
[("a las <time-of-day>", -1.8718021769015913),
|
||||
("time-of-day (latent)", -1.8718021769015913),
|
||||
("hour", -1.466337068793427), ("minute", -1.466337068793427),
|
||||
("<hour-of-day> <integer> (as relative minutes)",
|
||||
-1.466337068793427)],
|
||||
n = 4},
|
||||
koData =
|
||||
ClassData{prior = -1.0986122886681098, unseen = -1.791759469228055,
|
||||
ClassData{prior = -0.587786664902119, unseen = -2.772588722239781,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("time-of-day (latent)", -0.916290731874155),
|
||||
("hour", -0.916290731874155)],
|
||||
n = 1}}),
|
||||
n = 5}}),
|
||||
("n proximas <cycle>",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -2.5649493574615367,
|
||||
@ -1277,6 +1279,25 @@ classifiers
|
||||
koData =
|
||||
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("<hour-of-day> <integer> (as relative minutes)",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -1.9459101490553135,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("a las <time-of-day>integer (0-9) with two digits",
|
||||
-0.6931471805599453),
|
||||
("hour", -0.6931471805599453)],
|
||||
n = 2},
|
||||
koData =
|
||||
ClassData{prior = -infinity, unseen = -1.0986122886681098,
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("integer (0-9) with two digits",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -1.3862943611198906,
|
||||
likelihoods = HashMap.fromList [("number (0..15)", 0.0)], n = 2},
|
||||
koData =
|
||||
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("ce <time>",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -2.833213344056216,
|
||||
|
@ -434,24 +434,25 @@ classifiers
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("a las <time-of-day>",
|
||||
Classifier{okData =
|
||||
ClassData{prior = -0.12260232209233239,
|
||||
unseen = -4.634728988229636,
|
||||
ClassData{prior = -0.11778303565638351,
|
||||
unseen = -4.672828834461907,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("<hour-of-day> and half", -3.2386784521643803),
|
||||
("<time-of-day> horas", -3.9318256327243257),
|
||||
("<hour-of-day> and quarter", -3.0155349008501706),
|
||||
("time-of-day (latent)", -1.2237754316221157),
|
||||
("<hour-of-day> and <relative minutes>", -2.833213344056216),
|
||||
("<time-of-day> am|pm", -3.9318256327243257),
|
||||
[("<hour-of-day> and half", -3.2771447329921766),
|
||||
("<time-of-day> horas", -3.970291913552122),
|
||||
("<hour-of-day> and quarter", -3.054001181677967),
|
||||
("time-of-day (latent)", -1.1977031913123406),
|
||||
("<hour-of-day> and <relative minutes>", -2.871679624884012),
|
||||
("<time-of-day> am|pm", -3.970291913552122),
|
||||
("<hour-of-day> minus <integer> (as relative minutes)",
|
||||
-3.9318256327243257),
|
||||
-3.970291913552122),
|
||||
("<hour-of-day> minus quarter (as relative minutes)",
|
||||
-3.5263605246161616),
|
||||
("hour", -1.1592369104845446), ("minute", -1.8523840910444898)],
|
||||
n = 46},
|
||||
-3.5648268054439574),
|
||||
("hour", -1.1370785694959058), ("minute", -1.890850371872286)],
|
||||
n = 48},
|
||||
koData =
|
||||
ClassData{prior = -2.159484249353372, unseen = -3.1354942159291497,
|
||||
ClassData{prior = -2.1972245773362196,
|
||||
unseen = -3.1354942159291497,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("time-of-day (latent)", -1.4816045409242156),
|
||||
@ -647,13 +648,12 @@ classifiers
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("number (0..15)",
|
||||
Classifier{okData =
|
||||
ClassData{prior = -3.846628082779605e-2,
|
||||
unseen = -3.970291913552122,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 51},
|
||||
ClassData{prior = -7.020425867324857e-2,
|
||||
unseen = -4.04305126783455,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 55},
|
||||
koData =
|
||||
ClassData{prior = -3.2771447329921766,
|
||||
unseen = -1.3862943611198906,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 2}}),
|
||||
ClassData{prior = -2.691243082785829, unseen = -1.791759469228055,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 4}}),
|
||||
("D\237a Internacional de las Cooperativas",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -1.0986122886681098,
|
||||
@ -766,20 +766,21 @@ classifiers
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 2}}),
|
||||
("time-of-day (latent)",
|
||||
Classifier{okData =
|
||||
ClassData{prior = -0.14518200984449783,
|
||||
unseen = -3.5553480614894135,
|
||||
ClassData{prior = -0.23483959107740107,
|
||||
unseen = -3.6375861597263857,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("integer (numeric)", -1.2237754316221157),
|
||||
("number (0..15)", -0.3483066942682157)],
|
||||
n = 32},
|
||||
[("integer (numeric)", -1.3083328196501787),
|
||||
("number (0..15)", -0.3528213746227423)],
|
||||
n = 34},
|
||||
koData =
|
||||
ClassData{prior = -2.001480000210124, unseen = -2.0794415416798357,
|
||||
ClassData{prior = -1.563975538357343, unseen = -2.5649493574615367,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("integer (numeric)", -0.5596157879354228),
|
||||
("number (0..15)", -0.8472978603872037)],
|
||||
n = 5}}),
|
||||
[("integer (numeric)", -1.0986122886681098),
|
||||
("number (0..15)", -0.8754687373538999),
|
||||
("integer (0-9) with two digits", -1.3862943611198906)],
|
||||
n = 9}}),
|
||||
("<hour-of-day> and <relative minutes>",
|
||||
Classifier{okData =
|
||||
ClassData{prior = -0.3364722366212129, unseen = -3.332204510175204,
|
||||
@ -909,21 +910,22 @@ classifiers
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("<time-of-day> am|pm",
|
||||
Classifier{okData =
|
||||
ClassData{prior = -0.40546510810816444,
|
||||
unseen = -2.0794415416798357,
|
||||
ClassData{prior = -0.8109302162163288, unseen = -2.639057329615259,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("a las <time-of-day>", -1.252762968495368),
|
||||
("time-of-day (latent)", -1.252762968495368),
|
||||
("hour", -0.8472978603872037)],
|
||||
n = 2},
|
||||
[("a las <time-of-day>", -1.8718021769015913),
|
||||
("time-of-day (latent)", -1.8718021769015913),
|
||||
("hour", -1.466337068793427), ("minute", -1.466337068793427),
|
||||
("<hour-of-day> <integer> (as relative minutes)",
|
||||
-1.466337068793427)],
|
||||
n = 4},
|
||||
koData =
|
||||
ClassData{prior = -1.0986122886681098, unseen = -1.791759469228055,
|
||||
ClassData{prior = -0.587786664902119, unseen = -2.772588722239781,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("time-of-day (latent)", -0.916290731874155),
|
||||
("hour", -0.916290731874155)],
|
||||
n = 1}}),
|
||||
n = 5}}),
|
||||
("n proximas <cycle>",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -2.5649493574615367,
|
||||
@ -1277,6 +1279,25 @@ classifiers
|
||||
koData =
|
||||
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("<hour-of-day> <integer> (as relative minutes)",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -1.9459101490553135,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("a las <time-of-day>integer (0-9) with two digits",
|
||||
-0.6931471805599453),
|
||||
("hour", -0.6931471805599453)],
|
||||
n = 2},
|
||||
koData =
|
||||
ClassData{prior = -infinity, unseen = -1.0986122886681098,
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("integer (0-9) with two digits",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -1.3862943611198906,
|
||||
likelihoods = HashMap.fromList [("number (0..15)", 0.0)], n = 2},
|
||||
koData =
|
||||
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("ce <time>",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -2.833213344056216,
|
||||
|
@ -434,24 +434,25 @@ classifiers
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("a las <time-of-day>",
|
||||
Classifier{okData =
|
||||
ClassData{prior = -0.12260232209233239,
|
||||
unseen = -4.634728988229636,
|
||||
ClassData{prior = -0.11778303565638351,
|
||||
unseen = -4.672828834461907,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("<hour-of-day> and half", -3.2386784521643803),
|
||||
("<time-of-day> horas", -3.9318256327243257),
|
||||
("<hour-of-day> and quarter", -3.0155349008501706),
|
||||
("time-of-day (latent)", -1.2237754316221157),
|
||||
("<hour-of-day> and <relative minutes>", -2.833213344056216),
|
||||
("<time-of-day> am|pm", -3.9318256327243257),
|
||||
[("<hour-of-day> and half", -3.2771447329921766),
|
||||
("<time-of-day> horas", -3.970291913552122),
|
||||
("<hour-of-day> and quarter", -3.054001181677967),
|
||||
("time-of-day (latent)", -1.1977031913123406),
|
||||
("<hour-of-day> and <relative minutes>", -2.871679624884012),
|
||||
("<time-of-day> am|pm", -3.970291913552122),
|
||||
("<hour-of-day> minus <integer> (as relative minutes)",
|
||||
-3.9318256327243257),
|
||||
-3.970291913552122),
|
||||
("<hour-of-day> minus quarter (as relative minutes)",
|
||||
-3.5263605246161616),
|
||||
("hour", -1.1592369104845446), ("minute", -1.8523840910444898)],
|
||||
n = 46},
|
||||
-3.5648268054439574),
|
||||
("hour", -1.1370785694959058), ("minute", -1.890850371872286)],
|
||||
n = 48},
|
||||
koData =
|
||||
ClassData{prior = -2.159484249353372, unseen = -3.1354942159291497,
|
||||
ClassData{prior = -2.1972245773362196,
|
||||
unseen = -3.1354942159291497,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("time-of-day (latent)", -1.4816045409242156),
|
||||
@ -647,13 +648,12 @@ classifiers
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("number (0..15)",
|
||||
Classifier{okData =
|
||||
ClassData{prior = -3.846628082779605e-2,
|
||||
unseen = -3.970291913552122,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 51},
|
||||
ClassData{prior = -7.020425867324857e-2,
|
||||
unseen = -4.04305126783455,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 55},
|
||||
koData =
|
||||
ClassData{prior = -3.2771447329921766,
|
||||
unseen = -1.3862943611198906,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 2}}),
|
||||
ClassData{prior = -2.691243082785829, unseen = -1.791759469228055,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 4}}),
|
||||
("D\237a Internacional de las Cooperativas",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -1.0986122886681098,
|
||||
@ -766,20 +766,21 @@ classifiers
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 2}}),
|
||||
("time-of-day (latent)",
|
||||
Classifier{okData =
|
||||
ClassData{prior = -0.14518200984449783,
|
||||
unseen = -3.5553480614894135,
|
||||
ClassData{prior = -0.23483959107740107,
|
||||
unseen = -3.6375861597263857,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("integer (numeric)", -1.2237754316221157),
|
||||
("number (0..15)", -0.3483066942682157)],
|
||||
n = 32},
|
||||
[("integer (numeric)", -1.3083328196501787),
|
||||
("number (0..15)", -0.3528213746227423)],
|
||||
n = 34},
|
||||
koData =
|
||||
ClassData{prior = -2.001480000210124, unseen = -2.0794415416798357,
|
||||
ClassData{prior = -1.563975538357343, unseen = -2.5649493574615367,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("integer (numeric)", -0.5596157879354228),
|
||||
("number (0..15)", -0.8472978603872037)],
|
||||
n = 5}}),
|
||||
[("integer (numeric)", -1.0986122886681098),
|
||||
("number (0..15)", -0.8754687373538999),
|
||||
("integer (0-9) with two digits", -1.3862943611198906)],
|
||||
n = 9}}),
|
||||
("<hour-of-day> and <relative minutes>",
|
||||
Classifier{okData =
|
||||
ClassData{prior = -0.3364722366212129, unseen = -3.332204510175204,
|
||||
@ -909,21 +910,22 @@ classifiers
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("<time-of-day> am|pm",
|
||||
Classifier{okData =
|
||||
ClassData{prior = -0.40546510810816444,
|
||||
unseen = -2.0794415416798357,
|
||||
ClassData{prior = -0.8109302162163288, unseen = -2.639057329615259,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("a las <time-of-day>", -1.252762968495368),
|
||||
("time-of-day (latent)", -1.252762968495368),
|
||||
("hour", -0.8472978603872037)],
|
||||
n = 2},
|
||||
[("a las <time-of-day>", -1.8718021769015913),
|
||||
("time-of-day (latent)", -1.8718021769015913),
|
||||
("hour", -1.466337068793427), ("minute", -1.466337068793427),
|
||||
("<hour-of-day> <integer> (as relative minutes)",
|
||||
-1.466337068793427)],
|
||||
n = 4},
|
||||
koData =
|
||||
ClassData{prior = -1.0986122886681098, unseen = -1.791759469228055,
|
||||
ClassData{prior = -0.587786664902119, unseen = -2.772588722239781,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("time-of-day (latent)", -0.916290731874155),
|
||||
("hour", -0.916290731874155)],
|
||||
n = 1}}),
|
||||
n = 5}}),
|
||||
("n proximas <cycle>",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -2.5649493574615367,
|
||||
@ -1284,6 +1286,25 @@ classifiers
|
||||
koData =
|
||||
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("<hour-of-day> <integer> (as relative minutes)",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -1.9459101490553135,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("a las <time-of-day>integer (0-9) with two digits",
|
||||
-0.6931471805599453),
|
||||
("hour", -0.6931471805599453)],
|
||||
n = 2},
|
||||
koData =
|
||||
ClassData{prior = -infinity, unseen = -1.0986122886681098,
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("integer (0-9) with two digits",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -1.3862943611198906,
|
||||
likelihoods = HashMap.fromList [("number (0..15)", 0.0)], n = 2},
|
||||
koData =
|
||||
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("ce <time>",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -2.833213344056216,
|
||||
|
@ -434,24 +434,25 @@ classifiers
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("a las <time-of-day>",
|
||||
Classifier{okData =
|
||||
ClassData{prior = -0.12260232209233239,
|
||||
unseen = -4.634728988229636,
|
||||
ClassData{prior = -0.11778303565638351,
|
||||
unseen = -4.672828834461907,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("<hour-of-day> and half", -3.2386784521643803),
|
||||
("<time-of-day> horas", -3.9318256327243257),
|
||||
("<hour-of-day> and quarter", -3.0155349008501706),
|
||||
("time-of-day (latent)", -1.2237754316221157),
|
||||
("<hour-of-day> and <relative minutes>", -2.833213344056216),
|
||||
("<time-of-day> am|pm", -3.9318256327243257),
|
||||
[("<hour-of-day> and half", -3.2771447329921766),
|
||||
("<time-of-day> horas", -3.970291913552122),
|
||||
("<hour-of-day> and quarter", -3.054001181677967),
|
||||
("time-of-day (latent)", -1.1977031913123406),
|
||||
("<hour-of-day> and <relative minutes>", -2.871679624884012),
|
||||
("<time-of-day> am|pm", -3.970291913552122),
|
||||
("<hour-of-day> minus <integer> (as relative minutes)",
|
||||
-3.9318256327243257),
|
||||
-3.970291913552122),
|
||||
("<hour-of-day> minus quarter (as relative minutes)",
|
||||
-3.5263605246161616),
|
||||
("hour", -1.1592369104845446), ("minute", -1.8523840910444898)],
|
||||
n = 46},
|
||||
-3.5648268054439574),
|
||||
("hour", -1.1370785694959058), ("minute", -1.890850371872286)],
|
||||
n = 48},
|
||||
koData =
|
||||
ClassData{prior = -2.159484249353372, unseen = -3.1354942159291497,
|
||||
ClassData{prior = -2.1972245773362196,
|
||||
unseen = -3.1354942159291497,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("time-of-day (latent)", -1.4816045409242156),
|
||||
@ -647,13 +648,12 @@ classifiers
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("number (0..15)",
|
||||
Classifier{okData =
|
||||
ClassData{prior = -3.846628082779605e-2,
|
||||
unseen = -3.970291913552122,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 51},
|
||||
ClassData{prior = -7.020425867324857e-2,
|
||||
unseen = -4.04305126783455,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 55},
|
||||
koData =
|
||||
ClassData{prior = -3.2771447329921766,
|
||||
unseen = -1.3862943611198906,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 2}}),
|
||||
ClassData{prior = -2.691243082785829, unseen = -1.791759469228055,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 4}}),
|
||||
("D\237a Internacional de las Cooperativas",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -1.0986122886681098,
|
||||
@ -766,20 +766,21 @@ classifiers
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 2}}),
|
||||
("time-of-day (latent)",
|
||||
Classifier{okData =
|
||||
ClassData{prior = -0.14518200984449783,
|
||||
unseen = -3.5553480614894135,
|
||||
ClassData{prior = -0.23483959107740107,
|
||||
unseen = -3.6375861597263857,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("integer (numeric)", -1.2237754316221157),
|
||||
("number (0..15)", -0.3483066942682157)],
|
||||
n = 32},
|
||||
[("integer (numeric)", -1.3083328196501787),
|
||||
("number (0..15)", -0.3528213746227423)],
|
||||
n = 34},
|
||||
koData =
|
||||
ClassData{prior = -2.001480000210124, unseen = -2.0794415416798357,
|
||||
ClassData{prior = -1.563975538357343, unseen = -2.5649493574615367,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("integer (numeric)", -0.5596157879354228),
|
||||
("number (0..15)", -0.8472978603872037)],
|
||||
n = 5}}),
|
||||
[("integer (numeric)", -1.0986122886681098),
|
||||
("number (0..15)", -0.8754687373538999),
|
||||
("integer (0-9) with two digits", -1.3862943611198906)],
|
||||
n = 9}}),
|
||||
("<hour-of-day> and <relative minutes>",
|
||||
Classifier{okData =
|
||||
ClassData{prior = -0.3364722366212129, unseen = -3.332204510175204,
|
||||
@ -909,21 +910,22 @@ classifiers
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("<time-of-day> am|pm",
|
||||
Classifier{okData =
|
||||
ClassData{prior = -0.40546510810816444,
|
||||
unseen = -2.0794415416798357,
|
||||
ClassData{prior = -0.8109302162163288, unseen = -2.639057329615259,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("a las <time-of-day>", -1.252762968495368),
|
||||
("time-of-day (latent)", -1.252762968495368),
|
||||
("hour", -0.8472978603872037)],
|
||||
n = 2},
|
||||
[("a las <time-of-day>", -1.8718021769015913),
|
||||
("time-of-day (latent)", -1.8718021769015913),
|
||||
("hour", -1.466337068793427), ("minute", -1.466337068793427),
|
||||
("<hour-of-day> <integer> (as relative minutes)",
|
||||
-1.466337068793427)],
|
||||
n = 4},
|
||||
koData =
|
||||
ClassData{prior = -1.0986122886681098, unseen = -1.791759469228055,
|
||||
ClassData{prior = -0.587786664902119, unseen = -2.772588722239781,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("time-of-day (latent)", -0.916290731874155),
|
||||
("hour", -0.916290731874155)],
|
||||
n = 1}}),
|
||||
n = 5}}),
|
||||
("n proximas <cycle>",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -2.5649493574615367,
|
||||
@ -1277,6 +1279,25 @@ classifiers
|
||||
koData =
|
||||
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("<hour-of-day> <integer> (as relative minutes)",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -1.9459101490553135,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("a las <time-of-day>integer (0-9) with two digits",
|
||||
-0.6931471805599453),
|
||||
("hour", -0.6931471805599453)],
|
||||
n = 2},
|
||||
koData =
|
||||
ClassData{prior = -infinity, unseen = -1.0986122886681098,
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("integer (0-9) with two digits",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -1.3862943611198906,
|
||||
likelihoods = HashMap.fromList [("number (0..15)", 0.0)], n = 2},
|
||||
koData =
|
||||
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("ce <time>",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -2.833213344056216,
|
||||
|
@ -434,24 +434,25 @@ classifiers
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("a las <time-of-day>",
|
||||
Classifier{okData =
|
||||
ClassData{prior = -0.12260232209233239,
|
||||
unseen = -4.634728988229636,
|
||||
ClassData{prior = -0.11778303565638351,
|
||||
unseen = -4.672828834461907,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("<hour-of-day> and half", -3.2386784521643803),
|
||||
("<time-of-day> horas", -3.9318256327243257),
|
||||
("<hour-of-day> and quarter", -3.0155349008501706),
|
||||
("time-of-day (latent)", -1.2237754316221157),
|
||||
("<hour-of-day> and <relative minutes>", -2.833213344056216),
|
||||
("<time-of-day> am|pm", -3.9318256327243257),
|
||||
[("<hour-of-day> and half", -3.2771447329921766),
|
||||
("<time-of-day> horas", -3.970291913552122),
|
||||
("<hour-of-day> and quarter", -3.054001181677967),
|
||||
("time-of-day (latent)", -1.1977031913123406),
|
||||
("<hour-of-day> and <relative minutes>", -2.871679624884012),
|
||||
("<time-of-day> am|pm", -3.970291913552122),
|
||||
("<hour-of-day> minus <integer> (as relative minutes)",
|
||||
-3.9318256327243257),
|
||||
-3.970291913552122),
|
||||
("<hour-of-day> minus quarter (as relative minutes)",
|
||||
-3.5263605246161616),
|
||||
("hour", -1.1592369104845446), ("minute", -1.8523840910444898)],
|
||||
n = 46},
|
||||
-3.5648268054439574),
|
||||
("hour", -1.1370785694959058), ("minute", -1.890850371872286)],
|
||||
n = 48},
|
||||
koData =
|
||||
ClassData{prior = -2.159484249353372, unseen = -3.1354942159291497,
|
||||
ClassData{prior = -2.1972245773362196,
|
||||
unseen = -3.1354942159291497,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("time-of-day (latent)", -1.4816045409242156),
|
||||
@ -647,13 +648,12 @@ classifiers
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("number (0..15)",
|
||||
Classifier{okData =
|
||||
ClassData{prior = -3.846628082779605e-2,
|
||||
unseen = -3.970291913552122,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 51},
|
||||
ClassData{prior = -7.020425867324857e-2,
|
||||
unseen = -4.04305126783455,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 55},
|
||||
koData =
|
||||
ClassData{prior = -3.2771447329921766,
|
||||
unseen = -1.3862943611198906,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 2}}),
|
||||
ClassData{prior = -2.691243082785829, unseen = -1.791759469228055,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 4}}),
|
||||
("D\237a Internacional de las Cooperativas",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -1.0986122886681098,
|
||||
@ -766,20 +766,21 @@ classifiers
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 2}}),
|
||||
("time-of-day (latent)",
|
||||
Classifier{okData =
|
||||
ClassData{prior = -0.14518200984449783,
|
||||
unseen = -3.5553480614894135,
|
||||
ClassData{prior = -0.23483959107740107,
|
||||
unseen = -3.6375861597263857,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("integer (numeric)", -1.2237754316221157),
|
||||
("number (0..15)", -0.3483066942682157)],
|
||||
n = 32},
|
||||
[("integer (numeric)", -1.3083328196501787),
|
||||
("number (0..15)", -0.3528213746227423)],
|
||||
n = 34},
|
||||
koData =
|
||||
ClassData{prior = -2.001480000210124, unseen = -2.0794415416798357,
|
||||
ClassData{prior = -1.563975538357343, unseen = -2.5649493574615367,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("integer (numeric)", -0.5596157879354228),
|
||||
("number (0..15)", -0.8472978603872037)],
|
||||
n = 5}}),
|
||||
[("integer (numeric)", -1.0986122886681098),
|
||||
("number (0..15)", -0.8754687373538999),
|
||||
("integer (0-9) with two digits", -1.3862943611198906)],
|
||||
n = 9}}),
|
||||
("<hour-of-day> and <relative minutes>",
|
||||
Classifier{okData =
|
||||
ClassData{prior = -0.3364722366212129, unseen = -3.332204510175204,
|
||||
@ -909,21 +910,22 @@ classifiers
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("<time-of-day> am|pm",
|
||||
Classifier{okData =
|
||||
ClassData{prior = -0.40546510810816444,
|
||||
unseen = -2.0794415416798357,
|
||||
ClassData{prior = -0.8109302162163288, unseen = -2.639057329615259,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("a las <time-of-day>", -1.252762968495368),
|
||||
("time-of-day (latent)", -1.252762968495368),
|
||||
("hour", -0.8472978603872037)],
|
||||
n = 2},
|
||||
[("a las <time-of-day>", -1.8718021769015913),
|
||||
("time-of-day (latent)", -1.8718021769015913),
|
||||
("hour", -1.466337068793427), ("minute", -1.466337068793427),
|
||||
("<hour-of-day> <integer> (as relative minutes)",
|
||||
-1.466337068793427)],
|
||||
n = 4},
|
||||
koData =
|
||||
ClassData{prior = -1.0986122886681098, unseen = -1.791759469228055,
|
||||
ClassData{prior = -0.587786664902119, unseen = -2.772588722239781,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("time-of-day (latent)", -0.916290731874155),
|
||||
("hour", -0.916290731874155)],
|
||||
n = 1}}),
|
||||
n = 5}}),
|
||||
("n proximas <cycle>",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -2.5649493574615367,
|
||||
@ -1277,6 +1279,25 @@ classifiers
|
||||
koData =
|
||||
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("<hour-of-day> <integer> (as relative minutes)",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -1.9459101490553135,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("a las <time-of-day>integer (0-9) with two digits",
|
||||
-0.6931471805599453),
|
||||
("hour", -0.6931471805599453)],
|
||||
n = 2},
|
||||
koData =
|
||||
ClassData{prior = -infinity, unseen = -1.0986122886681098,
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("integer (0-9) with two digits",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -1.3862943611198906,
|
||||
likelihoods = HashMap.fromList [("number (0..15)", 0.0)], n = 2},
|
||||
koData =
|
||||
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("ce <time>",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -2.833213344056216,
|
||||
|
@ -434,24 +434,25 @@ classifiers
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("a las <time-of-day>",
|
||||
Classifier{okData =
|
||||
ClassData{prior = -0.12260232209233239,
|
||||
unseen = -4.634728988229636,
|
||||
ClassData{prior = -0.11778303565638351,
|
||||
unseen = -4.672828834461907,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("<hour-of-day> and half", -3.2386784521643803),
|
||||
("<time-of-day> horas", -3.9318256327243257),
|
||||
("<hour-of-day> and quarter", -3.0155349008501706),
|
||||
("time-of-day (latent)", -1.2237754316221157),
|
||||
("<hour-of-day> and <relative minutes>", -2.833213344056216),
|
||||
("<time-of-day> am|pm", -3.9318256327243257),
|
||||
[("<hour-of-day> and half", -3.2771447329921766),
|
||||
("<time-of-day> horas", -3.970291913552122),
|
||||
("<hour-of-day> and quarter", -3.054001181677967),
|
||||
("time-of-day (latent)", -1.1977031913123406),
|
||||
("<hour-of-day> and <relative minutes>", -2.871679624884012),
|
||||
("<time-of-day> am|pm", -3.970291913552122),
|
||||
("<hour-of-day> minus <integer> (as relative minutes)",
|
||||
-3.9318256327243257),
|
||||
-3.970291913552122),
|
||||
("<hour-of-day> minus quarter (as relative minutes)",
|
||||
-3.5263605246161616),
|
||||
("hour", -1.1592369104845446), ("minute", -1.8523840910444898)],
|
||||
n = 46},
|
||||
-3.5648268054439574),
|
||||
("hour", -1.1370785694959058), ("minute", -1.890850371872286)],
|
||||
n = 48},
|
||||
koData =
|
||||
ClassData{prior = -2.159484249353372, unseen = -3.1354942159291497,
|
||||
ClassData{prior = -2.1972245773362196,
|
||||
unseen = -3.1354942159291497,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("time-of-day (latent)", -1.4816045409242156),
|
||||
@ -647,13 +648,12 @@ classifiers
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("number (0..15)",
|
||||
Classifier{okData =
|
||||
ClassData{prior = -3.846628082779605e-2,
|
||||
unseen = -3.970291913552122,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 51},
|
||||
ClassData{prior = -7.020425867324857e-2,
|
||||
unseen = -4.04305126783455,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 55},
|
||||
koData =
|
||||
ClassData{prior = -3.2771447329921766,
|
||||
unseen = -1.3862943611198906,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 2}}),
|
||||
ClassData{prior = -2.691243082785829, unseen = -1.791759469228055,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 4}}),
|
||||
("D\237a Internacional de las Cooperativas",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -1.0986122886681098,
|
||||
@ -766,20 +766,21 @@ classifiers
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 2}}),
|
||||
("time-of-day (latent)",
|
||||
Classifier{okData =
|
||||
ClassData{prior = -0.14518200984449783,
|
||||
unseen = -3.5553480614894135,
|
||||
ClassData{prior = -0.23483959107740107,
|
||||
unseen = -3.6375861597263857,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("integer (numeric)", -1.2237754316221157),
|
||||
("number (0..15)", -0.3483066942682157)],
|
||||
n = 32},
|
||||
[("integer (numeric)", -1.3083328196501787),
|
||||
("number (0..15)", -0.3528213746227423)],
|
||||
n = 34},
|
||||
koData =
|
||||
ClassData{prior = -2.001480000210124, unseen = -2.0794415416798357,
|
||||
ClassData{prior = -1.563975538357343, unseen = -2.5649493574615367,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("integer (numeric)", -0.5596157879354228),
|
||||
("number (0..15)", -0.8472978603872037)],
|
||||
n = 5}}),
|
||||
[("integer (numeric)", -1.0986122886681098),
|
||||
("number (0..15)", -0.8754687373538999),
|
||||
("integer (0-9) with two digits", -1.3862943611198906)],
|
||||
n = 9}}),
|
||||
("<hour-of-day> and <relative minutes>",
|
||||
Classifier{okData =
|
||||
ClassData{prior = -0.3364722366212129, unseen = -3.332204510175204,
|
||||
@ -909,21 +910,22 @@ classifiers
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("<time-of-day> am|pm",
|
||||
Classifier{okData =
|
||||
ClassData{prior = -0.40546510810816444,
|
||||
unseen = -2.0794415416798357,
|
||||
ClassData{prior = -0.8109302162163288, unseen = -2.639057329615259,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("a las <time-of-day>", -1.252762968495368),
|
||||
("time-of-day (latent)", -1.252762968495368),
|
||||
("hour", -0.8472978603872037)],
|
||||
n = 2},
|
||||
[("a las <time-of-day>", -1.8718021769015913),
|
||||
("time-of-day (latent)", -1.8718021769015913),
|
||||
("hour", -1.466337068793427), ("minute", -1.466337068793427),
|
||||
("<hour-of-day> <integer> (as relative minutes)",
|
||||
-1.466337068793427)],
|
||||
n = 4},
|
||||
koData =
|
||||
ClassData{prior = -1.0986122886681098, unseen = -1.791759469228055,
|
||||
ClassData{prior = -0.587786664902119, unseen = -2.772588722239781,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("time-of-day (latent)", -0.916290731874155),
|
||||
("hour", -0.916290731874155)],
|
||||
n = 1}}),
|
||||
n = 5}}),
|
||||
("n proximas <cycle>",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -2.5649493574615367,
|
||||
@ -1277,6 +1279,25 @@ classifiers
|
||||
koData =
|
||||
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("<hour-of-day> <integer> (as relative minutes)",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -1.9459101490553135,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("a las <time-of-day>integer (0-9) with two digits",
|
||||
-0.6931471805599453),
|
||||
("hour", -0.6931471805599453)],
|
||||
n = 2},
|
||||
koData =
|
||||
ClassData{prior = -infinity, unseen = -1.0986122886681098,
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("integer (0-9) with two digits",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -1.3862943611198906,
|
||||
likelihoods = HashMap.fromList [("number (0..15)", 0.0)], n = 2},
|
||||
koData =
|
||||
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("ce <time>",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -2.833213344056216,
|
||||
|
@ -455,4 +455,9 @@ allExamples = concat
|
||||
, examples (datetime (2013, 3, 9, 0, 0, 0) Day)
|
||||
[ "el día nueve"
|
||||
]
|
||||
, examples (datetime (2013, 2, 12, 18, 2, 0) Minute)
|
||||
[
|
||||
"las seis cero dos pm"
|
||||
, "las seis zero dos pm"
|
||||
]
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user