Time/EN Support for a quarter after <hour-of-day>

Summary:
Essentially "for a quarter after <time-of-day>" gets matched with the "for <duration> from <time>" rule where "quarter" is interpreted as a duration of a few months.
Fixing this by allowing an optional preceding "for " in the quarter "quarter after|past <hour-of-day>" rule.

Reviewed By: chinmay87

Differential Revision: D16166518

fbshipit-source-id: 0215ec6a0dabf227194a14d15c87c8ed5539f9d1
This commit is contained in:
Kai Jun Weng 2019-07-10 17:35:24 -07:00 committed by Facebook Github Bot
parent ef0919055f
commit 9e96ac802a
15 changed files with 867 additions and 913 deletions

View File

@ -83,10 +83,10 @@ classifiers
likelihoods = HashMap.fromList [("", 0.0)], n = 3}}),
("integer (numeric)",
Classifier{okData =
ClassData{prior = -0.5901992113075029, unseen = -6.030685260261263,
likelihoods = HashMap.fromList [("", 0.0)], n = 414},
ClassData{prior = -0.5859242192393783, unseen = -6.040254711277414,
likelihoods = HashMap.fromList [("", 0.0)], n = 418},
koData =
ClassData{prior = -0.8079226951523735, unseen = -5.814130531825066,
ClassData{prior = -0.8132631617836908, unseen = -5.814130531825066,
likelihoods = HashMap.fromList [("", 0.0)], n = 333}}),
("<year> (bc|ad)",
Classifier{okData =
@ -119,8 +119,8 @@ classifiers
n = 1}}),
("noon|midnight|EOD|end of day",
Classifier{okData =
ClassData{prior = 0.0, unseen = -2.3025850929940455,
likelihoods = HashMap.fromList [("", 0.0)], n = 8},
ClassData{prior = 0.0, unseen = -2.3978952727983707,
likelihoods = HashMap.fromList [("", 0.0)], n = 9},
koData =
ClassData{prior = -infinity, unseen = -0.6931471805599453,
likelihoods = HashMap.fromList [], n = 0}}),
@ -2172,14 +2172,14 @@ classifiers
n = 1}}),
("time-of-day (latent)",
Classifier{okData =
ClassData{prior = -0.6834852696482084, unseen = -4.672828834461907,
ClassData{prior = -0.6649763035932491, unseen = -4.709530201312334,
likelihoods =
HashMap.fromList
[("integer (numeric)", -0.12014431184206321),
("integer (0..19)", -2.178532444324067)],
n = 104},
[("integer (numeric)", -0.11551288712184435),
("integer (0..19)", -2.2155737160044158)],
n = 108},
koData =
ClassData{prior = -0.70290335550531, unseen = -4.653960350157523,
ClassData{prior = -0.7221347174331976, unseen = -4.653960350157523,
likelihoods =
HashMap.fromList
[("integer (numeric)", -8.004270767353637e-2),
@ -2273,40 +2273,39 @@ classifiers
likelihoods = HashMap.fromList [], n = 0}}),
("<time-of-day> am|pm",
Classifier{okData =
ClassData{prior = -0.24445333790096085,
unseen = -5.631211781821365,
ClassData{prior = -0.2612154992636177, unseen = -5.659482215759621,
likelihoods =
HashMap.fromList
[("from|since|after <time>", -3.681710964635324),
("integer after|past <hour-of-day>", -4.241326752570746),
("at <time-of-day>", -2.4087452888224363),
("<time-of-day> o'clock", -4.529008825022527),
("half after|past <hour-of-day>", -4.529008825022527),
("second", -4.9344739331306915),
("hh:mm:ss", -4.9344739331306915),
("<hour-of-day> <integer>", -4.018183201256536),
("time-of-day (latent)", -1.6573292001385151),
("hhmm (latent)", -4.9344739331306915),
("hh:mm", -2.3317842476863078),
("quarter after|past <hour-of-day>", -4.018183201256536),
("until <time>", -4.241326752570746),
("about|exactly <time-of-day>", -4.9344739331306915),
("hour", -1.220901866426384),
("<time-of-day> sharp|exactly", -4.9344739331306915),
("minute", -1.7358008155800104)],
n = 130},
[("from|since|after <time>", -3.7100816617645394),
("integer after|past <hour-of-day>", -4.269697449699962),
("at <time-of-day>", -2.437115985951652),
("<time-of-day> o'clock", -4.557379522151743),
("half after|past <hour-of-day>", -4.557379522151743),
("second", -4.962844630259907),
("hh:mm:ss", -4.962844630259907),
("<hour-of-day> <integer>", -4.046553898385752),
("time-of-day (latent)", -1.6856998972677308),
("hhmm (latent)", -4.962844630259907),
("hh:mm", -2.3601549448155237),
("quarter after|past <hour-of-day>", -3.4587672334836332),
("until <time>", -4.269697449699962),
("about|exactly <time-of-day>", -4.962844630259907),
("hour", -1.2492725635555995),
("<time-of-day> sharp|exactly", -4.962844630259907),
("minute", -1.6856998972677308)],
n = 134},
koData =
ClassData{prior = -1.5284688499004333, unseen = -4.51085950651685,
ClassData{prior = -1.4701758451005928, unseen = -4.59511985013459,
likelihoods =
HashMap.fromList
[("<integer> to|till|before <hour-of-day>", -3.1135153092103742),
("from|since|after <time>", -3.1135153092103742),
("at <time-of-day>", -3.4011973816621555),
("time-of-day (latent)", -1.241713132308783),
("hh:mm", -3.4011973816621555),
("until <time>", -3.8066624897703196),
("hour", -1.0658224658451187), ("minute", -2.5538995212749516)],
n = 36}}),
[("<integer> to|till|before <hour-of-day>", -3.1986731175506815),
("from|since|after <time>", -3.1986731175506815),
("at <time-of-day>", -3.4863551900024623),
("time-of-day (latent)", -1.1837700970084166),
("hh:mm", -3.4863551900024623),
("until <time>", -3.891820298110627),
("hour", -1.0296194171811581), ("minute", -2.639057329615259)],
n = 40}}),
("Yom Ha'atzmaut",
Classifier{okData =
ClassData{prior = 0.0, unseen = -1.0986122886681098,
@ -2371,7 +2370,7 @@ classifiers
likelihoods = HashMap.fromList [], n = 0}}),
("a <unit-of-duration>",
Classifier{okData =
ClassData{prior = -0.7419373447293773,
ClassData{prior = -0.9555114450274363,
unseen = -3.5553480614894135,
likelihoods =
HashMap.fromList
@ -2387,14 +2386,14 @@ classifiers
("day (grain)", -2.1400661634962708)],
n = 10},
koData =
ClassData{prior = -0.6466271649250525,
unseen = -3.6109179126442243,
ClassData{prior = -0.48550781578170077,
unseen = -3.8501476017100584,
likelihoods =
HashMap.fromList
[("hour (grain)", -1.9740810260220096),
("quarter", -1.5040773967762742), ("hour", -1.9740810260220096),
("quarter (grain)", -1.5040773967762742)],
n = 11}}),
[("hour (grain)", -2.2192034840549946),
("quarter", -1.2636920390275583), ("hour", -2.2192034840549946),
("quarter (grain)", -1.2636920390275583)],
n = 16}}),
("at the beginning|end of <year>",
Classifier{okData =
ClassData{prior = 0.0, unseen = -2.3978952727983707,
@ -2507,7 +2506,7 @@ classifiers
likelihoods = HashMap.fromList [], n = 0}}),
("<duration> after|before|from|past <time>",
Classifier{okData =
ClassData{prior = -0.5212969236332861, unseen = -4.189654742026425,
ClassData{prior = -0.7691330875378672, unseen = -4.189654742026425,
likelihoods =
HashMap.fromList
[("a <unit-of-duration>now", -3.481240089335692),
@ -2535,36 +2534,34 @@ classifiers
("<integer> <unit-of-duration>now", -3.0757749812275272)],
n = 19},
koData =
ClassData{prior = -0.9007865453381898,
unseen = -3.9889840465642745,
ClassData{prior = -0.6225296133459919, unseen = -4.276666119016055,
likelihoods =
HashMap.fromList
[("quarterhour", -1.667706820558076),
("dayhour", -3.2771447329921766),
("<integer> <unit-of-duration>intersect", -3.2771447329921766),
[("quarterhour", -1.318240897874875),
("dayhour", -3.56953269648137),
("<integer> <unit-of-duration>intersect", -3.56953269648137),
("<integer> <unit-of-duration><day-of-month> (ordinal)",
-3.2771447329921766),
("a <unit-of-duration><time-of-day> am|pm",
-2.3608540011180215),
-3.56953269648137),
("a <unit-of-duration><time-of-day> am|pm", -2.065455299705096),
("a <unit-of-duration>time-of-day (latent)",
-2.3608540011180215),
("dayday", -2.583997552432231),
-2.065455299705096),
("dayday", -2.8763855159214247),
("<integer> <unit-of-duration>time-of-day (latent)",
-3.2771447329921766),
-3.56953269648137),
("a <unit-of-duration>noon|midnight|EOD|end of day",
-3.2771447329921766),
-3.164067588373206),
("<integer> <unit-of-duration><day-of-month> (ordinal or number) <named-month>",
-3.2771447329921766)],
n = 13}}),
-3.56953269648137)],
n = 22}}),
("quarter after|past <hour-of-day>",
Classifier{okData =
ClassData{prior = 0.0, unseen = -2.639057329615259,
ClassData{prior = 0.0, unseen = -3.1780538303479458,
likelihoods =
HashMap.fromList
[("noon|midnight|EOD|end of day", -1.8718021769015913),
("time-of-day (latent)", -0.9555114450274363),
("hour", -0.7731898882334817)],
n = 5},
[("noon|midnight|EOD|end of day", -2.03688192726104),
("time-of-day (latent)", -0.9382696385929302),
("hour", -0.7375989431307791)],
n = 10},
koData =
ClassData{prior = -infinity, unseen = -1.3862943611198906,
likelihoods = HashMap.fromList [], n = 0}}),
@ -3365,12 +3362,11 @@ classifiers
likelihoods = HashMap.fromList [], n = 0}}),
("quarter (grain)",
Classifier{okData =
ClassData{prior = -0.4595323293784402, unseen = -2.639057329615259,
ClassData{prior = -0.6931471805599453, unseen = -2.639057329615259,
likelihoods = HashMap.fromList [("", 0.0)], n = 12},
koData =
ClassData{prior = -0.9985288301111273,
unseen = -2.1972245773362196,
likelihoods = HashMap.fromList [("", 0.0)], n = 7}}),
ClassData{prior = -0.6931471805599453, unseen = -2.639057329615259,
likelihoods = HashMap.fromList [("", 0.0)], n = 12}}),
("last <cycle> of <time>",
Classifier{okData =
ClassData{prior = -0.916290731874155, unseen = -3.1354942159291497,

View File

@ -83,10 +83,10 @@ classifiers
likelihoods = HashMap.fromList [("", 0.0)], n = 3}}),
("integer (numeric)",
Classifier{okData =
ClassData{prior = -0.5901992113075029, unseen = -6.030685260261263,
likelihoods = HashMap.fromList [("", 0.0)], n = 414},
ClassData{prior = -0.5859242192393783, unseen = -6.040254711277414,
likelihoods = HashMap.fromList [("", 0.0)], n = 418},
koData =
ClassData{prior = -0.8079226951523735, unseen = -5.814130531825066,
ClassData{prior = -0.8132631617836908, unseen = -5.814130531825066,
likelihoods = HashMap.fromList [("", 0.0)], n = 333}}),
("<year> (bc|ad)",
Classifier{okData =
@ -119,8 +119,8 @@ classifiers
n = 1}}),
("noon|midnight|EOD|end of day",
Classifier{okData =
ClassData{prior = 0.0, unseen = -2.3025850929940455,
likelihoods = HashMap.fromList [("", 0.0)], n = 8},
ClassData{prior = 0.0, unseen = -2.3978952727983707,
likelihoods = HashMap.fromList [("", 0.0)], n = 9},
koData =
ClassData{prior = -infinity, unseen = -0.6931471805599453,
likelihoods = HashMap.fromList [], n = 0}}),
@ -2172,14 +2172,14 @@ classifiers
n = 1}}),
("time-of-day (latent)",
Classifier{okData =
ClassData{prior = -0.6834852696482084, unseen = -4.672828834461907,
ClassData{prior = -0.6649763035932491, unseen = -4.709530201312334,
likelihoods =
HashMap.fromList
[("integer (numeric)", -0.12014431184206321),
("integer (0..19)", -2.178532444324067)],
n = 104},
[("integer (numeric)", -0.11551288712184435),
("integer (0..19)", -2.2155737160044158)],
n = 108},
koData =
ClassData{prior = -0.70290335550531, unseen = -4.653960350157523,
ClassData{prior = -0.7221347174331976, unseen = -4.653960350157523,
likelihoods =
HashMap.fromList
[("integer (numeric)", -8.004270767353637e-2),
@ -2273,40 +2273,39 @@ classifiers
likelihoods = HashMap.fromList [], n = 0}}),
("<time-of-day> am|pm",
Classifier{okData =
ClassData{prior = -0.24445333790096085,
unseen = -5.631211781821365,
ClassData{prior = -0.2612154992636177, unseen = -5.659482215759621,
likelihoods =
HashMap.fromList
[("from|since|after <time>", -3.681710964635324),
("integer after|past <hour-of-day>", -4.241326752570746),
("at <time-of-day>", -2.4087452888224363),
("<time-of-day> o'clock", -4.529008825022527),
("half after|past <hour-of-day>", -4.529008825022527),
("second", -4.9344739331306915),
("hh:mm:ss", -4.9344739331306915),
("<hour-of-day> <integer>", -4.018183201256536),
("time-of-day (latent)", -1.6573292001385151),
("hhmm (latent)", -4.9344739331306915),
("hh:mm", -2.3317842476863078),
("quarter after|past <hour-of-day>", -4.018183201256536),
("until <time>", -4.241326752570746),
("about|exactly <time-of-day>", -4.9344739331306915),
("hour", -1.220901866426384),
("<time-of-day> sharp|exactly", -4.9344739331306915),
("minute", -1.7358008155800104)],
n = 130},
[("from|since|after <time>", -3.7100816617645394),
("integer after|past <hour-of-day>", -4.269697449699962),
("at <time-of-day>", -2.437115985951652),
("<time-of-day> o'clock", -4.557379522151743),
("half after|past <hour-of-day>", -4.557379522151743),
("second", -4.962844630259907),
("hh:mm:ss", -4.962844630259907),
("<hour-of-day> <integer>", -4.046553898385752),
("time-of-day (latent)", -1.6856998972677308),
("hhmm (latent)", -4.962844630259907),
("hh:mm", -2.3601549448155237),
("quarter after|past <hour-of-day>", -3.4587672334836332),
("until <time>", -4.269697449699962),
("about|exactly <time-of-day>", -4.962844630259907),
("hour", -1.2492725635555995),
("<time-of-day> sharp|exactly", -4.962844630259907),
("minute", -1.6856998972677308)],
n = 134},
koData =
ClassData{prior = -1.5284688499004333, unseen = -4.51085950651685,
ClassData{prior = -1.4701758451005928, unseen = -4.59511985013459,
likelihoods =
HashMap.fromList
[("<integer> to|till|before <hour-of-day>", -3.1135153092103742),
("from|since|after <time>", -3.1135153092103742),
("at <time-of-day>", -3.4011973816621555),
("time-of-day (latent)", -1.241713132308783),
("hh:mm", -3.4011973816621555),
("until <time>", -3.8066624897703196),
("hour", -1.0658224658451187), ("minute", -2.5538995212749516)],
n = 36}}),
[("<integer> to|till|before <hour-of-day>", -3.1986731175506815),
("from|since|after <time>", -3.1986731175506815),
("at <time-of-day>", -3.4863551900024623),
("time-of-day (latent)", -1.1837700970084166),
("hh:mm", -3.4863551900024623),
("until <time>", -3.891820298110627),
("hour", -1.0296194171811581), ("minute", -2.639057329615259)],
n = 40}}),
("Yom Ha'atzmaut",
Classifier{okData =
ClassData{prior = 0.0, unseen = -1.0986122886681098,
@ -2371,7 +2370,7 @@ classifiers
likelihoods = HashMap.fromList [], n = 0}}),
("a <unit-of-duration>",
Classifier{okData =
ClassData{prior = -0.7419373447293773,
ClassData{prior = -0.9555114450274363,
unseen = -3.5553480614894135,
likelihoods =
HashMap.fromList
@ -2387,14 +2386,14 @@ classifiers
("day (grain)", -2.1400661634962708)],
n = 10},
koData =
ClassData{prior = -0.6466271649250525,
unseen = -3.6109179126442243,
ClassData{prior = -0.48550781578170077,
unseen = -3.8501476017100584,
likelihoods =
HashMap.fromList
[("hour (grain)", -1.9740810260220096),
("quarter", -1.5040773967762742), ("hour", -1.9740810260220096),
("quarter (grain)", -1.5040773967762742)],
n = 11}}),
[("hour (grain)", -2.2192034840549946),
("quarter", -1.2636920390275583), ("hour", -2.2192034840549946),
("quarter (grain)", -1.2636920390275583)],
n = 16}}),
("at the beginning|end of <year>",
Classifier{okData =
ClassData{prior = 0.0, unseen = -2.3978952727983707,
@ -2507,7 +2506,7 @@ classifiers
likelihoods = HashMap.fromList [], n = 0}}),
("<duration> after|before|from|past <time>",
Classifier{okData =
ClassData{prior = -0.5212969236332861, unseen = -4.189654742026425,
ClassData{prior = -0.7691330875378672, unseen = -4.189654742026425,
likelihoods =
HashMap.fromList
[("a <unit-of-duration>now", -3.481240089335692),
@ -2535,36 +2534,34 @@ classifiers
("<integer> <unit-of-duration>now", -3.0757749812275272)],
n = 19},
koData =
ClassData{prior = -0.9007865453381898,
unseen = -3.9889840465642745,
ClassData{prior = -0.6225296133459919, unseen = -4.276666119016055,
likelihoods =
HashMap.fromList
[("quarterhour", -1.667706820558076),
("dayhour", -3.2771447329921766),
("<integer> <unit-of-duration>intersect", -3.2771447329921766),
[("quarterhour", -1.318240897874875),
("dayhour", -3.56953269648137),
("<integer> <unit-of-duration>intersect", -3.56953269648137),
("<integer> <unit-of-duration><day-of-month> (ordinal)",
-3.2771447329921766),
("a <unit-of-duration><time-of-day> am|pm",
-2.3608540011180215),
-3.56953269648137),
("a <unit-of-duration><time-of-day> am|pm", -2.065455299705096),
("a <unit-of-duration>time-of-day (latent)",
-2.3608540011180215),
("dayday", -2.583997552432231),
-2.065455299705096),
("dayday", -2.8763855159214247),
("<integer> <unit-of-duration>time-of-day (latent)",
-3.2771447329921766),
-3.56953269648137),
("a <unit-of-duration>noon|midnight|EOD|end of day",
-3.2771447329921766),
-3.164067588373206),
("<integer> <unit-of-duration><day-of-month> (ordinal or number) <named-month>",
-3.2771447329921766)],
n = 13}}),
-3.56953269648137)],
n = 22}}),
("quarter after|past <hour-of-day>",
Classifier{okData =
ClassData{prior = 0.0, unseen = -2.639057329615259,
ClassData{prior = 0.0, unseen = -3.1780538303479458,
likelihoods =
HashMap.fromList
[("noon|midnight|EOD|end of day", -1.8718021769015913),
("time-of-day (latent)", -0.9555114450274363),
("hour", -0.7731898882334817)],
n = 5},
[("noon|midnight|EOD|end of day", -2.03688192726104),
("time-of-day (latent)", -0.9382696385929302),
("hour", -0.7375989431307791)],
n = 10},
koData =
ClassData{prior = -infinity, unseen = -1.3862943611198906,
likelihoods = HashMap.fromList [], n = 0}}),
@ -3365,12 +3362,11 @@ classifiers
likelihoods = HashMap.fromList [], n = 0}}),
("quarter (grain)",
Classifier{okData =
ClassData{prior = -0.4595323293784402, unseen = -2.639057329615259,
ClassData{prior = -0.6931471805599453, unseen = -2.639057329615259,
likelihoods = HashMap.fromList [("", 0.0)], n = 12},
koData =
ClassData{prior = -0.9985288301111273,
unseen = -2.1972245773362196,
likelihoods = HashMap.fromList [("", 0.0)], n = 7}}),
ClassData{prior = -0.6931471805599453, unseen = -2.639057329615259,
likelihoods = HashMap.fromList [("", 0.0)], n = 12}}),
("last <cycle> of <time>",
Classifier{okData =
ClassData{prior = -0.916290731874155, unseen = -3.1354942159291497,

View File

@ -83,10 +83,11 @@ classifiers
likelihoods = HashMap.fromList [("", 0.0)], n = 3}}),
("integer (numeric)",
Classifier{okData =
ClassData{prior = -0.6055086477015309, unseen = -6.07993319509559,
likelihoods = HashMap.fromList [("", 0.0)], n = 435},
ClassData{prior = -0.6013615339931878, unseen = -6.089044875446846,
likelihoods = HashMap.fromList [("", 0.0)], n = 439},
koData =
ClassData{prior = -0.789210466964444, unseen = -5.8971538676367405,
ClassData{prior = -0.7942167352425882,
unseen = -5.8971538676367405,
likelihoods = HashMap.fromList [("", 0.0)], n = 362}}),
("<year> (bc|ad)",
Classifier{okData =
@ -119,8 +120,8 @@ classifiers
n = 1}}),
("noon|midnight|EOD|end of day",
Classifier{okData =
ClassData{prior = 0.0, unseen = -2.3025850929940455,
likelihoods = HashMap.fromList [("", 0.0)], n = 8},
ClassData{prior = 0.0, unseen = -2.3978952727983707,
likelihoods = HashMap.fromList [("", 0.0)], n = 9},
koData =
ClassData{prior = -infinity, unseen = -0.6931471805599453,
likelihoods = HashMap.fromList [], n = 0}}),
@ -2275,14 +2276,14 @@ classifiers
n = 1}}),
("time-of-day (latent)",
Classifier{okData =
ClassData{prior = -0.6931471805599453, unseen = -4.672828834461907,
ClassData{prior = -0.6744550475477927, unseen = -4.709530201312334,
likelihoods =
HashMap.fromList
[("integer (numeric)", -0.12014431184206321),
("integer (0..19)", -2.178532444324067)],
n = 104},
[("integer (numeric)", -0.11551288712184435),
("integer (0..19)", -2.2155737160044158)],
n = 108},
koData =
ClassData{prior = -0.6931471805599453, unseen = -4.672828834461907,
ClassData{prior = -0.7121953755306398, unseen = -4.672828834461907,
likelihoods =
HashMap.fromList
[("integer (numeric)", -7.847161544149521e-2),
@ -2377,40 +2378,39 @@ classifiers
likelihoods = HashMap.fromList [], n = 0}}),
("<time-of-day> am|pm",
Classifier{okData =
ClassData{prior = -0.24709679233670262,
unseen = -5.645446897643238,
ClassData{prior = -0.2634948468377771, unseen = -5.673323267171493,
likelihoods =
HashMap.fromList
[("from|since|after <time>", -3.6959969218828004),
("integer after|past <hour-of-day>", -4.255612709818223),
("at <time-of-day>", -2.3838105329166317),
("<time-of-day> o'clock", -4.543294782270004),
("half after|past <hour-of-day>", -4.543294782270004),
("second", -4.948759890378168),
("hh:mm:ss", -4.948759890378168),
("<hour-of-day> <integer>", -4.032469158504013),
("time-of-day (latent)", -1.6716151573859919),
("hhmm (latent)", -4.948759890378168),
("hh:mm", -2.3097025607629096),
("quarter after|past <hour-of-day>", -4.032469158504013),
("until <time>", -4.255612709818223),
("about|exactly <time-of-day>", -4.948759890378168),
("hour", -1.2351878236738605),
("<time-of-day> sharp|exactly", -4.948759890378168),
("minute", -1.7100814382137877)],
n = 132},
[("from|since|after <time>", -3.7239707739252066),
("integer after|past <hour-of-day>", -4.283586561860629),
("at <time-of-day>", -2.4117843849590375),
("<time-of-day> o'clock", -4.57126863431241),
("half after|past <hour-of-day>", -4.57126863431241),
("second", -4.976733742420574),
("hh:mm:ss", -4.976733742420574),
("<hour-of-day> <integer>", -4.060443010546419),
("time-of-day (latent)", -1.6995890094283979),
("hhmm (latent)", -4.976733742420574),
("hh:mm", -2.337676412805316),
("quarter after|past <hour-of-day>", -3.4726563456443005),
("until <time>", -4.283586561860629),
("about|exactly <time-of-day>", -4.976733742420574),
("hour", -1.2631616757162665),
("<time-of-day> sharp|exactly", -4.976733742420574),
("minute", -1.6625477377480489)],
n = 136},
koData =
ClassData{prior = -1.518980802278849, unseen = -4.532599493153256,
ClassData{prior = -1.4625776658695213, unseen = -4.61512051684126,
likelihoods =
HashMap.fromList
[("<integer> to|till|before <hour-of-day>", -3.1354942159291497),
("from|since|after <time>", -3.1354942159291497),
("at <time-of-day>", -3.4231762883809305),
("time-of-day (latent)", -1.2259517110447111),
("hh:mm", -3.4231762883809305),
("until <time>", -3.828641396489095),
("hour", -1.0560526742493137), ("minute", -2.575878427993727)],
n = 37}}),
[("<integer> to|till|before <hour-of-day>", -3.2188758248682006),
("from|since|after <time>", -3.2188758248682006),
("at <time-of-day>", -3.506557897319982),
("time-of-day (latent)", -1.171182981502945),
("hh:mm", -3.506557897319982),
("until <time>", -3.912023005428146),
("hour", -1.0216512475319814), ("minute", -2.659260036932778)],
n = 41}}),
("Yom Ha'atzmaut",
Classifier{okData =
ClassData{prior = 0.0, unseen = -1.0986122886681098,
@ -2490,7 +2490,7 @@ classifiers
likelihoods = HashMap.fromList [], n = 0}}),
("a <unit-of-duration>",
Classifier{okData =
ClassData{prior = -0.7419373447293773,
ClassData{prior = -0.9555114450274363,
unseen = -3.5553480614894135,
likelihoods =
HashMap.fromList
@ -2506,14 +2506,14 @@ classifiers
("day (grain)", -2.1400661634962708)],
n = 10},
koData =
ClassData{prior = -0.6466271649250525,
unseen = -3.6109179126442243,
ClassData{prior = -0.48550781578170077,
unseen = -3.8501476017100584,
likelihoods =
HashMap.fromList
[("hour (grain)", -1.9740810260220096),
("quarter", -1.5040773967762742), ("hour", -1.9740810260220096),
("quarter (grain)", -1.5040773967762742)],
n = 11}}),
[("hour (grain)", -2.2192034840549946),
("quarter", -1.2636920390275583), ("hour", -2.2192034840549946),
("quarter (grain)", -1.2636920390275583)],
n = 16}}),
("at the beginning|end of <year>",
Classifier{okData =
ClassData{prior = 0.0, unseen = -2.3978952727983707,
@ -2627,7 +2627,7 @@ classifiers
likelihoods = HashMap.fromList [], n = 0}}),
("<duration> after|before|from|past <time>",
Classifier{okData =
ClassData{prior = -0.5212969236332861, unseen = -4.189654742026425,
ClassData{prior = -0.7691330875378672, unseen = -4.189654742026425,
likelihoods =
HashMap.fromList
[("a <unit-of-duration>now", -3.481240089335692),
@ -2655,36 +2655,34 @@ classifiers
("<integer> <unit-of-duration>now", -3.0757749812275272)],
n = 19},
koData =
ClassData{prior = -0.9007865453381898,
unseen = -3.9889840465642745,
ClassData{prior = -0.6225296133459919, unseen = -4.276666119016055,
likelihoods =
HashMap.fromList
[("quarterhour", -1.667706820558076),
("dayhour", -3.2771447329921766),
("<integer> <unit-of-duration>intersect", -3.2771447329921766),
[("quarterhour", -1.318240897874875),
("dayhour", -3.56953269648137),
("<integer> <unit-of-duration>intersect", -3.56953269648137),
("<integer> <unit-of-duration><day-of-month> (ordinal)",
-3.2771447329921766),
("a <unit-of-duration><time-of-day> am|pm",
-2.3608540011180215),
-3.56953269648137),
("a <unit-of-duration><time-of-day> am|pm", -2.065455299705096),
("a <unit-of-duration>time-of-day (latent)",
-2.3608540011180215),
("dayday", -2.583997552432231),
-2.065455299705096),
("dayday", -2.8763855159214247),
("<integer> <unit-of-duration>time-of-day (latent)",
-3.2771447329921766),
-3.56953269648137),
("a <unit-of-duration>noon|midnight|EOD|end of day",
-3.2771447329921766),
-3.164067588373206),
("<integer> <unit-of-duration><day-of-month> (ordinal or number) <named-month>",
-3.2771447329921766)],
n = 13}}),
-3.56953269648137)],
n = 22}}),
("quarter after|past <hour-of-day>",
Classifier{okData =
ClassData{prior = 0.0, unseen = -2.639057329615259,
ClassData{prior = 0.0, unseen = -3.1780538303479458,
likelihoods =
HashMap.fromList
[("noon|midnight|EOD|end of day", -1.8718021769015913),
("time-of-day (latent)", -0.9555114450274363),
("hour", -0.7731898882334817)],
n = 5},
[("noon|midnight|EOD|end of day", -2.03688192726104),
("time-of-day (latent)", -0.9382696385929302),
("hour", -0.7375989431307791)],
n = 10},
koData =
ClassData{prior = -infinity, unseen = -1.3862943611198906,
likelihoods = HashMap.fromList [], n = 0}}),
@ -3518,12 +3516,11 @@ classifiers
likelihoods = HashMap.fromList [], n = 0}}),
("quarter (grain)",
Classifier{okData =
ClassData{prior = -0.4595323293784402, unseen = -2.639057329615259,
ClassData{prior = -0.6931471805599453, unseen = -2.639057329615259,
likelihoods = HashMap.fromList [("", 0.0)], n = 12},
koData =
ClassData{prior = -0.9985288301111273,
unseen = -2.1972245773362196,
likelihoods = HashMap.fromList [("", 0.0)], n = 7}}),
ClassData{prior = -0.6931471805599453, unseen = -2.639057329615259,
likelihoods = HashMap.fromList [("", 0.0)], n = 12}}),
("last <cycle> of <time>",
Classifier{okData =
ClassData{prior = -0.916290731874155, unseen = -3.1354942159291497,

View File

@ -83,10 +83,10 @@ classifiers
likelihoods = HashMap.fromList [("", 0.0)], n = 3}}),
("integer (numeric)",
Classifier{okData =
ClassData{prior = -0.6224722228900089, unseen = -6.056784013228625,
likelihoods = HashMap.fromList [("", 0.0)], n = 425},
ClassData{prior = -0.6181422669163661, unseen = -6.066108090103747,
likelihoods = HashMap.fromList [("", 0.0)], n = 429},
koData =
ClassData{prior = -0.7691995437598556, unseen = -5.910796644040527,
ClassData{prior = -0.7742373377898127, unseen = -5.910796644040527,
likelihoods = HashMap.fromList [("", 0.0)], n = 367}}),
("<year> (bc|ad)",
Classifier{okData =
@ -119,8 +119,8 @@ classifiers
n = 1}}),
("noon|midnight|EOD|end of day",
Classifier{okData =
ClassData{prior = 0.0, unseen = -2.3025850929940455,
likelihoods = HashMap.fromList [("", 0.0)], n = 8},
ClassData{prior = 0.0, unseen = -2.3978952727983707,
likelihoods = HashMap.fromList [("", 0.0)], n = 9},
koData =
ClassData{prior = -infinity, unseen = -0.6931471805599453,
likelihoods = HashMap.fromList [], n = 0}}),
@ -2225,14 +2225,14 @@ classifiers
n = 1}}),
("time-of-day (latent)",
Classifier{okData =
ClassData{prior = -0.6979433528234383, unseen = -4.672828834461907,
ClassData{prior = -0.6791609385852054, unseen = -4.709530201312334,
likelihoods =
HashMap.fromList
[("integer (numeric)", -0.12014431184206321),
("integer (0..19)", -2.178532444324067)],
n = 104},
[("integer (numeric)", -0.11551288712184435),
("integer (0..19)", -2.2155737160044158)],
n = 108},
koData =
ClassData{prior = -0.6883739018072877, unseen = -4.68213122712422,
ClassData{prior = -0.7073318155519017, unseen = -4.68213122712422,
likelihoods =
HashMap.fromList
[("integer (numeric)", -7.770898432731625e-2),
@ -2326,40 +2326,39 @@ classifiers
likelihoods = HashMap.fromList [], n = 0}}),
("<time-of-day> am|pm",
Classifier{okData =
ClassData{prior = -0.24709679233670262,
unseen = -5.645446897643238,
ClassData{prior = -0.2634948468377771, unseen = -5.673323267171493,
likelihoods =
HashMap.fromList
[("from|since|after <time>", -3.6959969218828004),
("integer after|past <hour-of-day>", -4.255612709818223),
("at <time-of-day>", -2.3838105329166317),
("<time-of-day> o'clock", -4.543294782270004),
("half after|past <hour-of-day>", -4.543294782270004),
("second", -4.948759890378168),
("hh:mm:ss", -4.948759890378168),
("<hour-of-day> <integer>", -4.032469158504013),
("time-of-day (latent)", -1.6716151573859919),
("hhmm (latent)", -4.948759890378168),
("hh:mm", -2.3097025607629096),
("quarter after|past <hour-of-day>", -4.032469158504013),
("until <time>", -4.255612709818223),
("about|exactly <time-of-day>", -4.948759890378168),
("hour", -1.2351878236738605),
("<time-of-day> sharp|exactly", -4.948759890378168),
("minute", -1.7100814382137877)],
n = 132},
[("from|since|after <time>", -3.7239707739252066),
("integer after|past <hour-of-day>", -4.283586561860629),
("at <time-of-day>", -2.4117843849590375),
("<time-of-day> o'clock", -4.57126863431241),
("half after|past <hour-of-day>", -4.57126863431241),
("second", -4.976733742420574),
("hh:mm:ss", -4.976733742420574),
("<hour-of-day> <integer>", -4.060443010546419),
("time-of-day (latent)", -1.6995890094283979),
("hhmm (latent)", -4.976733742420574),
("hh:mm", -2.337676412805316),
("quarter after|past <hour-of-day>", -3.4726563456443005),
("until <time>", -4.283586561860629),
("about|exactly <time-of-day>", -4.976733742420574),
("hour", -1.2631616757162665),
("<time-of-day> sharp|exactly", -4.976733742420574),
("minute", -1.6625477377480489)],
n = 136},
koData =
ClassData{prior = -1.518980802278849, unseen = -4.532599493153256,
ClassData{prior = -1.4625776658695213, unseen = -4.61512051684126,
likelihoods =
HashMap.fromList
[("<integer> to|till|before <hour-of-day>", -3.1354942159291497),
("from|since|after <time>", -3.1354942159291497),
("at <time-of-day>", -3.4231762883809305),
("time-of-day (latent)", -1.2259517110447111),
("hh:mm", -3.4231762883809305),
("until <time>", -3.828641396489095),
("hour", -1.0560526742493137), ("minute", -2.575878427993727)],
n = 37}}),
[("<integer> to|till|before <hour-of-day>", -3.2188758248682006),
("from|since|after <time>", -3.2188758248682006),
("at <time-of-day>", -3.506557897319982),
("time-of-day (latent)", -1.171182981502945),
("hh:mm", -3.506557897319982),
("until <time>", -3.912023005428146),
("hour", -1.0216512475319814), ("minute", -2.659260036932778)],
n = 41}}),
("Yom Ha'atzmaut",
Classifier{okData =
ClassData{prior = 0.0, unseen = -1.0986122886681098,
@ -2439,7 +2438,7 @@ classifiers
likelihoods = HashMap.fromList [], n = 0}}),
("a <unit-of-duration>",
Classifier{okData =
ClassData{prior = -0.7419373447293773,
ClassData{prior = -0.9555114450274363,
unseen = -3.5553480614894135,
likelihoods =
HashMap.fromList
@ -2455,14 +2454,14 @@ classifiers
("day (grain)", -2.1400661634962708)],
n = 10},
koData =
ClassData{prior = -0.6466271649250525,
unseen = -3.6109179126442243,
ClassData{prior = -0.48550781578170077,
unseen = -3.8501476017100584,
likelihoods =
HashMap.fromList
[("hour (grain)", -1.9740810260220096),
("quarter", -1.5040773967762742), ("hour", -1.9740810260220096),
("quarter (grain)", -1.5040773967762742)],
n = 11}}),
[("hour (grain)", -2.2192034840549946),
("quarter", -1.2636920390275583), ("hour", -2.2192034840549946),
("quarter (grain)", -1.2636920390275583)],
n = 16}}),
("at the beginning|end of <year>",
Classifier{okData =
ClassData{prior = 0.0, unseen = -2.3978952727983707,
@ -2577,7 +2576,7 @@ classifiers
likelihoods = HashMap.fromList [], n = 0}}),
("<duration> after|before|from|past <time>",
Classifier{okData =
ClassData{prior = -0.5212969236332861, unseen = -4.189654742026425,
ClassData{prior = -0.7691330875378672, unseen = -4.189654742026425,
likelihoods =
HashMap.fromList
[("a <unit-of-duration>now", -3.481240089335692),
@ -2605,36 +2604,34 @@ classifiers
("<integer> <unit-of-duration>now", -3.0757749812275272)],
n = 19},
koData =
ClassData{prior = -0.9007865453381898,
unseen = -3.9889840465642745,
ClassData{prior = -0.6225296133459919, unseen = -4.276666119016055,
likelihoods =
HashMap.fromList
[("quarterhour", -1.667706820558076),
("dayhour", -3.2771447329921766),
("<integer> <unit-of-duration>intersect", -3.2771447329921766),
[("quarterhour", -1.318240897874875),
("dayhour", -3.56953269648137),
("<integer> <unit-of-duration>intersect", -3.56953269648137),
("<integer> <unit-of-duration><day-of-month> (ordinal)",
-3.2771447329921766),
("a <unit-of-duration><time-of-day> am|pm",
-2.3608540011180215),
-3.56953269648137),
("a <unit-of-duration><time-of-day> am|pm", -2.065455299705096),
("a <unit-of-duration>time-of-day (latent)",
-2.3608540011180215),
("dayday", -2.583997552432231),
-2.065455299705096),
("dayday", -2.8763855159214247),
("<integer> <unit-of-duration>time-of-day (latent)",
-3.2771447329921766),
-3.56953269648137),
("a <unit-of-duration>noon|midnight|EOD|end of day",
-3.2771447329921766),
-3.164067588373206),
("<integer> <unit-of-duration><day-of-month> (ordinal or number) <named-month>",
-3.2771447329921766)],
n = 13}}),
-3.56953269648137)],
n = 22}}),
("quarter after|past <hour-of-day>",
Classifier{okData =
ClassData{prior = 0.0, unseen = -2.639057329615259,
ClassData{prior = 0.0, unseen = -3.1780538303479458,
likelihoods =
HashMap.fromList
[("noon|midnight|EOD|end of day", -1.8718021769015913),
("time-of-day (latent)", -0.9555114450274363),
("hour", -0.7731898882334817)],
n = 5},
[("noon|midnight|EOD|end of day", -2.03688192726104),
("time-of-day (latent)", -0.9382696385929302),
("hour", -0.7375989431307791)],
n = 10},
koData =
ClassData{prior = -infinity, unseen = -1.3862943611198906,
likelihoods = HashMap.fromList [], n = 0}}),
@ -3448,12 +3445,11 @@ classifiers
likelihoods = HashMap.fromList [], n = 0}}),
("quarter (grain)",
Classifier{okData =
ClassData{prior = -0.4595323293784402, unseen = -2.639057329615259,
ClassData{prior = -0.6931471805599453, unseen = -2.639057329615259,
likelihoods = HashMap.fromList [("", 0.0)], n = 12},
koData =
ClassData{prior = -0.9985288301111273,
unseen = -2.1972245773362196,
likelihoods = HashMap.fromList [("", 0.0)], n = 7}}),
ClassData{prior = -0.6931471805599453, unseen = -2.639057329615259,
likelihoods = HashMap.fromList [("", 0.0)], n = 12}}),
("last <cycle> of <time>",
Classifier{okData =
ClassData{prior = -0.916290731874155, unseen = -3.1354942159291497,

View File

@ -83,10 +83,10 @@ classifiers
likelihoods = HashMap.fromList [("", 0.0)], n = 3}}),
("integer (numeric)",
Classifier{okData =
ClassData{prior = -0.5901992113075029, unseen = -6.030685260261263,
likelihoods = HashMap.fromList [("", 0.0)], n = 414},
ClassData{prior = -0.5859242192393783, unseen = -6.040254711277414,
likelihoods = HashMap.fromList [("", 0.0)], n = 418},
koData =
ClassData{prior = -0.8079226951523735, unseen = -5.814130531825066,
ClassData{prior = -0.8132631617836908, unseen = -5.814130531825066,
likelihoods = HashMap.fromList [("", 0.0)], n = 333}}),
("<year> (bc|ad)",
Classifier{okData =
@ -119,8 +119,8 @@ classifiers
n = 1}}),
("noon|midnight|EOD|end of day",
Classifier{okData =
ClassData{prior = 0.0, unseen = -2.3025850929940455,
likelihoods = HashMap.fromList [("", 0.0)], n = 8},
ClassData{prior = 0.0, unseen = -2.3978952727983707,
likelihoods = HashMap.fromList [("", 0.0)], n = 9},
koData =
ClassData{prior = -infinity, unseen = -0.6931471805599453,
likelihoods = HashMap.fromList [], n = 0}}),
@ -2172,14 +2172,14 @@ classifiers
n = 1}}),
("time-of-day (latent)",
Classifier{okData =
ClassData{prior = -0.6834852696482084, unseen = -4.672828834461907,
ClassData{prior = -0.6649763035932491, unseen = -4.709530201312334,
likelihoods =
HashMap.fromList
[("integer (numeric)", -0.12014431184206321),
("integer (0..19)", -2.178532444324067)],
n = 104},
[("integer (numeric)", -0.11551288712184435),
("integer (0..19)", -2.2155737160044158)],
n = 108},
koData =
ClassData{prior = -0.70290335550531, unseen = -4.653960350157523,
ClassData{prior = -0.7221347174331976, unseen = -4.653960350157523,
likelihoods =
HashMap.fromList
[("integer (numeric)", -8.004270767353637e-2),
@ -2273,40 +2273,39 @@ classifiers
likelihoods = HashMap.fromList [], n = 0}}),
("<time-of-day> am|pm",
Classifier{okData =
ClassData{prior = -0.24445333790096085,
unseen = -5.631211781821365,
ClassData{prior = -0.2612154992636177, unseen = -5.659482215759621,
likelihoods =
HashMap.fromList
[("from|since|after <time>", -3.681710964635324),
("integer after|past <hour-of-day>", -4.241326752570746),
("at <time-of-day>", -2.4087452888224363),
("<time-of-day> o'clock", -4.529008825022527),
("half after|past <hour-of-day>", -4.529008825022527),
("second", -4.9344739331306915),
("hh:mm:ss", -4.9344739331306915),
("<hour-of-day> <integer>", -4.018183201256536),
("time-of-day (latent)", -1.6573292001385151),
("hhmm (latent)", -4.9344739331306915),
("hh:mm", -2.3317842476863078),
("quarter after|past <hour-of-day>", -4.018183201256536),
("until <time>", -4.241326752570746),
("about|exactly <time-of-day>", -4.9344739331306915),
("hour", -1.220901866426384),
("<time-of-day> sharp|exactly", -4.9344739331306915),
("minute", -1.7358008155800104)],
n = 130},
[("from|since|after <time>", -3.7100816617645394),
("integer after|past <hour-of-day>", -4.269697449699962),
("at <time-of-day>", -2.437115985951652),
("<time-of-day> o'clock", -4.557379522151743),
("half after|past <hour-of-day>", -4.557379522151743),
("second", -4.962844630259907),
("hh:mm:ss", -4.962844630259907),
("<hour-of-day> <integer>", -4.046553898385752),
("time-of-day (latent)", -1.6856998972677308),
("hhmm (latent)", -4.962844630259907),
("hh:mm", -2.3601549448155237),
("quarter after|past <hour-of-day>", -3.4587672334836332),
("until <time>", -4.269697449699962),
("about|exactly <time-of-day>", -4.962844630259907),
("hour", -1.2492725635555995),
("<time-of-day> sharp|exactly", -4.962844630259907),
("minute", -1.6856998972677308)],
n = 134},
koData =
ClassData{prior = -1.5284688499004333, unseen = -4.51085950651685,
ClassData{prior = -1.4701758451005928, unseen = -4.59511985013459,
likelihoods =
HashMap.fromList
[("<integer> to|till|before <hour-of-day>", -3.1135153092103742),
("from|since|after <time>", -3.1135153092103742),
("at <time-of-day>", -3.4011973816621555),
("time-of-day (latent)", -1.241713132308783),
("hh:mm", -3.4011973816621555),
("until <time>", -3.8066624897703196),
("hour", -1.0658224658451187), ("minute", -2.5538995212749516)],
n = 36}}),
[("<integer> to|till|before <hour-of-day>", -3.1986731175506815),
("from|since|after <time>", -3.1986731175506815),
("at <time-of-day>", -3.4863551900024623),
("time-of-day (latent)", -1.1837700970084166),
("hh:mm", -3.4863551900024623),
("until <time>", -3.891820298110627),
("hour", -1.0296194171811581), ("minute", -2.639057329615259)],
n = 40}}),
("Yom Ha'atzmaut",
Classifier{okData =
ClassData{prior = 0.0, unseen = -1.0986122886681098,
@ -2371,7 +2370,7 @@ classifiers
likelihoods = HashMap.fromList [], n = 0}}),
("a <unit-of-duration>",
Classifier{okData =
ClassData{prior = -0.7419373447293773,
ClassData{prior = -0.9555114450274363,
unseen = -3.5553480614894135,
likelihoods =
HashMap.fromList
@ -2387,14 +2386,14 @@ classifiers
("day (grain)", -2.1400661634962708)],
n = 10},
koData =
ClassData{prior = -0.6466271649250525,
unseen = -3.6109179126442243,
ClassData{prior = -0.48550781578170077,
unseen = -3.8501476017100584,
likelihoods =
HashMap.fromList
[("hour (grain)", -1.9740810260220096),
("quarter", -1.5040773967762742), ("hour", -1.9740810260220096),
("quarter (grain)", -1.5040773967762742)],
n = 11}}),
[("hour (grain)", -2.2192034840549946),
("quarter", -1.2636920390275583), ("hour", -2.2192034840549946),
("quarter (grain)", -1.2636920390275583)],
n = 16}}),
("at the beginning|end of <year>",
Classifier{okData =
ClassData{prior = 0.0, unseen = -2.3978952727983707,
@ -2507,7 +2506,7 @@ classifiers
likelihoods = HashMap.fromList [], n = 0}}),
("<duration> after|before|from|past <time>",
Classifier{okData =
ClassData{prior = -0.5212969236332861, unseen = -4.189654742026425,
ClassData{prior = -0.7691330875378672, unseen = -4.189654742026425,
likelihoods =
HashMap.fromList
[("a <unit-of-duration>now", -3.481240089335692),
@ -2535,36 +2534,34 @@ classifiers
("<integer> <unit-of-duration>now", -3.0757749812275272)],
n = 19},
koData =
ClassData{prior = -0.9007865453381898,
unseen = -3.9889840465642745,
ClassData{prior = -0.6225296133459919, unseen = -4.276666119016055,
likelihoods =
HashMap.fromList
[("quarterhour", -1.667706820558076),
("dayhour", -3.2771447329921766),
("<integer> <unit-of-duration>intersect", -3.2771447329921766),
[("quarterhour", -1.318240897874875),
("dayhour", -3.56953269648137),
("<integer> <unit-of-duration>intersect", -3.56953269648137),
("<integer> <unit-of-duration><day-of-month> (ordinal)",
-3.2771447329921766),
("a <unit-of-duration><time-of-day> am|pm",
-2.3608540011180215),
-3.56953269648137),
("a <unit-of-duration><time-of-day> am|pm", -2.065455299705096),
("a <unit-of-duration>time-of-day (latent)",
-2.3608540011180215),
("dayday", -2.583997552432231),
-2.065455299705096),
("dayday", -2.8763855159214247),
("<integer> <unit-of-duration>time-of-day (latent)",
-3.2771447329921766),
-3.56953269648137),
("a <unit-of-duration>noon|midnight|EOD|end of day",
-3.2771447329921766),
-3.164067588373206),
("<integer> <unit-of-duration><day-of-month> (ordinal or number) <named-month>",
-3.2771447329921766)],
n = 13}}),
-3.56953269648137)],
n = 22}}),
("quarter after|past <hour-of-day>",
Classifier{okData =
ClassData{prior = 0.0, unseen = -2.639057329615259,
ClassData{prior = 0.0, unseen = -3.1780538303479458,
likelihoods =
HashMap.fromList
[("noon|midnight|EOD|end of day", -1.8718021769015913),
("time-of-day (latent)", -0.9555114450274363),
("hour", -0.7731898882334817)],
n = 5},
[("noon|midnight|EOD|end of day", -2.03688192726104),
("time-of-day (latent)", -0.9382696385929302),
("hour", -0.7375989431307791)],
n = 10},
koData =
ClassData{prior = -infinity, unseen = -1.3862943611198906,
likelihoods = HashMap.fromList [], n = 0}}),
@ -3365,12 +3362,11 @@ classifiers
likelihoods = HashMap.fromList [], n = 0}}),
("quarter (grain)",
Classifier{okData =
ClassData{prior = -0.4595323293784402, unseen = -2.639057329615259,
ClassData{prior = -0.6931471805599453, unseen = -2.639057329615259,
likelihoods = HashMap.fromList [("", 0.0)], n = 12},
koData =
ClassData{prior = -0.9985288301111273,
unseen = -2.1972245773362196,
likelihoods = HashMap.fromList [("", 0.0)], n = 7}}),
ClassData{prior = -0.6931471805599453, unseen = -2.639057329615259,
likelihoods = HashMap.fromList [("", 0.0)], n = 12}}),
("last <cycle> of <time>",
Classifier{okData =
ClassData{prior = -0.916290731874155, unseen = -3.1354942159291497,

View File

@ -83,10 +83,10 @@ classifiers
likelihoods = HashMap.fromList [("", 0.0)], n = 3}}),
("integer (numeric)",
Classifier{okData =
ClassData{prior = -0.5901992113075029, unseen = -6.030685260261263,
likelihoods = HashMap.fromList [("", 0.0)], n = 414},
ClassData{prior = -0.5859242192393783, unseen = -6.040254711277414,
likelihoods = HashMap.fromList [("", 0.0)], n = 418},
koData =
ClassData{prior = -0.8079226951523735, unseen = -5.814130531825066,
ClassData{prior = -0.8132631617836908, unseen = -5.814130531825066,
likelihoods = HashMap.fromList [("", 0.0)], n = 333}}),
("<year> (bc|ad)",
Classifier{okData =
@ -119,8 +119,8 @@ classifiers
n = 1}}),
("noon|midnight|EOD|end of day",
Classifier{okData =
ClassData{prior = 0.0, unseen = -2.3025850929940455,
likelihoods = HashMap.fromList [("", 0.0)], n = 8},
ClassData{prior = 0.0, unseen = -2.3978952727983707,
likelihoods = HashMap.fromList [("", 0.0)], n = 9},
koData =
ClassData{prior = -infinity, unseen = -0.6931471805599453,
likelihoods = HashMap.fromList [], n = 0}}),
@ -2172,14 +2172,14 @@ classifiers
n = 1}}),
("time-of-day (latent)",
Classifier{okData =
ClassData{prior = -0.6834852696482084, unseen = -4.672828834461907,
ClassData{prior = -0.6649763035932491, unseen = -4.709530201312334,
likelihoods =
HashMap.fromList
[("integer (numeric)", -0.12014431184206321),
("integer (0..19)", -2.178532444324067)],
n = 104},
[("integer (numeric)", -0.11551288712184435),
("integer (0..19)", -2.2155737160044158)],
n = 108},
koData =
ClassData{prior = -0.70290335550531, unseen = -4.653960350157523,
ClassData{prior = -0.7221347174331976, unseen = -4.653960350157523,
likelihoods =
HashMap.fromList
[("integer (numeric)", -8.004270767353637e-2),
@ -2273,40 +2273,39 @@ classifiers
likelihoods = HashMap.fromList [], n = 0}}),
("<time-of-day> am|pm",
Classifier{okData =
ClassData{prior = -0.24445333790096085,
unseen = -5.631211781821365,
ClassData{prior = -0.2612154992636177, unseen = -5.659482215759621,
likelihoods =
HashMap.fromList
[("from|since|after <time>", -3.681710964635324),
("integer after|past <hour-of-day>", -4.241326752570746),
("at <time-of-day>", -2.4087452888224363),
("<time-of-day> o'clock", -4.529008825022527),
("half after|past <hour-of-day>", -4.529008825022527),
("second", -4.9344739331306915),
("hh:mm:ss", -4.9344739331306915),
("<hour-of-day> <integer>", -4.018183201256536),
("time-of-day (latent)", -1.6573292001385151),
("hhmm (latent)", -4.9344739331306915),
("hh:mm", -2.3317842476863078),
("quarter after|past <hour-of-day>", -4.018183201256536),
("until <time>", -4.241326752570746),
("about|exactly <time-of-day>", -4.9344739331306915),
("hour", -1.220901866426384),
("<time-of-day> sharp|exactly", -4.9344739331306915),
("minute", -1.7358008155800104)],
n = 130},
[("from|since|after <time>", -3.7100816617645394),
("integer after|past <hour-of-day>", -4.269697449699962),
("at <time-of-day>", -2.437115985951652),
("<time-of-day> o'clock", -4.557379522151743),
("half after|past <hour-of-day>", -4.557379522151743),
("second", -4.962844630259907),
("hh:mm:ss", -4.962844630259907),
("<hour-of-day> <integer>", -4.046553898385752),
("time-of-day (latent)", -1.6856998972677308),
("hhmm (latent)", -4.962844630259907),
("hh:mm", -2.3601549448155237),
("quarter after|past <hour-of-day>", -3.4587672334836332),
("until <time>", -4.269697449699962),
("about|exactly <time-of-day>", -4.962844630259907),
("hour", -1.2492725635555995),
("<time-of-day> sharp|exactly", -4.962844630259907),
("minute", -1.6856998972677308)],
n = 134},
koData =
ClassData{prior = -1.5284688499004333, unseen = -4.51085950651685,
ClassData{prior = -1.4701758451005928, unseen = -4.59511985013459,
likelihoods =
HashMap.fromList
[("<integer> to|till|before <hour-of-day>", -3.1135153092103742),
("from|since|after <time>", -3.1135153092103742),
("at <time-of-day>", -3.4011973816621555),
("time-of-day (latent)", -1.241713132308783),
("hh:mm", -3.4011973816621555),
("until <time>", -3.8066624897703196),
("hour", -1.0658224658451187), ("minute", -2.5538995212749516)],
n = 36}}),
[("<integer> to|till|before <hour-of-day>", -3.1986731175506815),
("from|since|after <time>", -3.1986731175506815),
("at <time-of-day>", -3.4863551900024623),
("time-of-day (latent)", -1.1837700970084166),
("hh:mm", -3.4863551900024623),
("until <time>", -3.891820298110627),
("hour", -1.0296194171811581), ("minute", -2.639057329615259)],
n = 40}}),
("Yom Ha'atzmaut",
Classifier{okData =
ClassData{prior = 0.0, unseen = -1.0986122886681098,
@ -2371,7 +2370,7 @@ classifiers
likelihoods = HashMap.fromList [], n = 0}}),
("a <unit-of-duration>",
Classifier{okData =
ClassData{prior = -0.7419373447293773,
ClassData{prior = -0.9555114450274363,
unseen = -3.5553480614894135,
likelihoods =
HashMap.fromList
@ -2387,14 +2386,14 @@ classifiers
("day (grain)", -2.1400661634962708)],
n = 10},
koData =
ClassData{prior = -0.6466271649250525,
unseen = -3.6109179126442243,
ClassData{prior = -0.48550781578170077,
unseen = -3.8501476017100584,
likelihoods =
HashMap.fromList
[("hour (grain)", -1.9740810260220096),
("quarter", -1.5040773967762742), ("hour", -1.9740810260220096),
("quarter (grain)", -1.5040773967762742)],
n = 11}}),
[("hour (grain)", -2.2192034840549946),
("quarter", -1.2636920390275583), ("hour", -2.2192034840549946),
("quarter (grain)", -1.2636920390275583)],
n = 16}}),
("at the beginning|end of <year>",
Classifier{okData =
ClassData{prior = 0.0, unseen = -2.3978952727983707,
@ -2507,7 +2506,7 @@ classifiers
likelihoods = HashMap.fromList [], n = 0}}),
("<duration> after|before|from|past <time>",
Classifier{okData =
ClassData{prior = -0.5212969236332861, unseen = -4.189654742026425,
ClassData{prior = -0.7691330875378672, unseen = -4.189654742026425,
likelihoods =
HashMap.fromList
[("a <unit-of-duration>now", -3.481240089335692),
@ -2535,36 +2534,34 @@ classifiers
("<integer> <unit-of-duration>now", -3.0757749812275272)],
n = 19},
koData =
ClassData{prior = -0.9007865453381898,
unseen = -3.9889840465642745,
ClassData{prior = -0.6225296133459919, unseen = -4.276666119016055,
likelihoods =
HashMap.fromList
[("quarterhour", -1.667706820558076),
("dayhour", -3.2771447329921766),
("<integer> <unit-of-duration>intersect", -3.2771447329921766),
[("quarterhour", -1.318240897874875),
("dayhour", -3.56953269648137),
("<integer> <unit-of-duration>intersect", -3.56953269648137),
("<integer> <unit-of-duration><day-of-month> (ordinal)",
-3.2771447329921766),
("a <unit-of-duration><time-of-day> am|pm",
-2.3608540011180215),
-3.56953269648137),
("a <unit-of-duration><time-of-day> am|pm", -2.065455299705096),
("a <unit-of-duration>time-of-day (latent)",
-2.3608540011180215),
("dayday", -2.583997552432231),
-2.065455299705096),
("dayday", -2.8763855159214247),
("<integer> <unit-of-duration>time-of-day (latent)",
-3.2771447329921766),
-3.56953269648137),
("a <unit-of-duration>noon|midnight|EOD|end of day",
-3.2771447329921766),
-3.164067588373206),
("<integer> <unit-of-duration><day-of-month> (ordinal or number) <named-month>",
-3.2771447329921766)],
n = 13}}),
-3.56953269648137)],
n = 22}}),
("quarter after|past <hour-of-day>",
Classifier{okData =
ClassData{prior = 0.0, unseen = -2.639057329615259,
ClassData{prior = 0.0, unseen = -3.1780538303479458,
likelihoods =
HashMap.fromList
[("noon|midnight|EOD|end of day", -1.8718021769015913),
("time-of-day (latent)", -0.9555114450274363),
("hour", -0.7731898882334817)],
n = 5},
[("noon|midnight|EOD|end of day", -2.03688192726104),
("time-of-day (latent)", -0.9382696385929302),
("hour", -0.7375989431307791)],
n = 10},
koData =
ClassData{prior = -infinity, unseen = -1.3862943611198906,
likelihoods = HashMap.fromList [], n = 0}}),
@ -3365,12 +3362,11 @@ classifiers
likelihoods = HashMap.fromList [], n = 0}}),
("quarter (grain)",
Classifier{okData =
ClassData{prior = -0.4595323293784402, unseen = -2.639057329615259,
ClassData{prior = -0.6931471805599453, unseen = -2.639057329615259,
likelihoods = HashMap.fromList [("", 0.0)], n = 12},
koData =
ClassData{prior = -0.9985288301111273,
unseen = -2.1972245773362196,
likelihoods = HashMap.fromList [("", 0.0)], n = 7}}),
ClassData{prior = -0.6931471805599453, unseen = -2.639057329615259,
likelihoods = HashMap.fromList [("", 0.0)], n = 12}}),
("last <cycle> of <time>",
Classifier{okData =
ClassData{prior = -0.916290731874155, unseen = -3.1354942159291497,

View File

@ -83,10 +83,10 @@ classifiers
likelihoods = HashMap.fromList [("", 0.0)], n = 3}}),
("integer (numeric)",
Classifier{okData =
ClassData{prior = -0.5901992113075029, unseen = -6.030685260261263,
likelihoods = HashMap.fromList [("", 0.0)], n = 414},
ClassData{prior = -0.5859242192393783, unseen = -6.040254711277414,
likelihoods = HashMap.fromList [("", 0.0)], n = 418},
koData =
ClassData{prior = -0.8079226951523735, unseen = -5.814130531825066,
ClassData{prior = -0.8132631617836908, unseen = -5.814130531825066,
likelihoods = HashMap.fromList [("", 0.0)], n = 333}}),
("<year> (bc|ad)",
Classifier{okData =
@ -119,8 +119,8 @@ classifiers
n = 1}}),
("noon|midnight|EOD|end of day",
Classifier{okData =
ClassData{prior = 0.0, unseen = -2.3025850929940455,
likelihoods = HashMap.fromList [("", 0.0)], n = 8},
ClassData{prior = 0.0, unseen = -2.3978952727983707,
likelihoods = HashMap.fromList [("", 0.0)], n = 9},
koData =
ClassData{prior = -infinity, unseen = -0.6931471805599453,
likelihoods = HashMap.fromList [], n = 0}}),
@ -2172,14 +2172,14 @@ classifiers
n = 1}}),
("time-of-day (latent)",
Classifier{okData =
ClassData{prior = -0.6834852696482084, unseen = -4.672828834461907,
ClassData{prior = -0.6649763035932491, unseen = -4.709530201312334,
likelihoods =
HashMap.fromList
[("integer (numeric)", -0.12014431184206321),
("integer (0..19)", -2.178532444324067)],
n = 104},
[("integer (numeric)", -0.11551288712184435),
("integer (0..19)", -2.2155737160044158)],
n = 108},
koData =
ClassData{prior = -0.70290335550531, unseen = -4.653960350157523,
ClassData{prior = -0.7221347174331976, unseen = -4.653960350157523,
likelihoods =
HashMap.fromList
[("integer (numeric)", -8.004270767353637e-2),
@ -2273,40 +2273,39 @@ classifiers
likelihoods = HashMap.fromList [], n = 0}}),
("<time-of-day> am|pm",
Classifier{okData =
ClassData{prior = -0.24445333790096085,
unseen = -5.631211781821365,
ClassData{prior = -0.2612154992636177, unseen = -5.659482215759621,
likelihoods =
HashMap.fromList
[("from|since|after <time>", -3.681710964635324),
("integer after|past <hour-of-day>", -4.241326752570746),
("at <time-of-day>", -2.4087452888224363),
("<time-of-day> o'clock", -4.529008825022527),
("half after|past <hour-of-day>", -4.529008825022527),
("second", -4.9344739331306915),
("hh:mm:ss", -4.9344739331306915),
("<hour-of-day> <integer>", -4.018183201256536),
("time-of-day (latent)", -1.6573292001385151),
("hhmm (latent)", -4.9344739331306915),
("hh:mm", -2.3317842476863078),
("quarter after|past <hour-of-day>", -4.018183201256536),
("until <time>", -4.241326752570746),
("about|exactly <time-of-day>", -4.9344739331306915),
("hour", -1.220901866426384),
("<time-of-day> sharp|exactly", -4.9344739331306915),
("minute", -1.7358008155800104)],
n = 130},
[("from|since|after <time>", -3.7100816617645394),
("integer after|past <hour-of-day>", -4.269697449699962),
("at <time-of-day>", -2.437115985951652),
("<time-of-day> o'clock", -4.557379522151743),
("half after|past <hour-of-day>", -4.557379522151743),
("second", -4.962844630259907),
("hh:mm:ss", -4.962844630259907),
("<hour-of-day> <integer>", -4.046553898385752),
("time-of-day (latent)", -1.6856998972677308),
("hhmm (latent)", -4.962844630259907),
("hh:mm", -2.3601549448155237),
("quarter after|past <hour-of-day>", -3.4587672334836332),
("until <time>", -4.269697449699962),
("about|exactly <time-of-day>", -4.962844630259907),
("hour", -1.2492725635555995),
("<time-of-day> sharp|exactly", -4.962844630259907),
("minute", -1.6856998972677308)],
n = 134},
koData =
ClassData{prior = -1.5284688499004333, unseen = -4.51085950651685,
ClassData{prior = -1.4701758451005928, unseen = -4.59511985013459,
likelihoods =
HashMap.fromList
[("<integer> to|till|before <hour-of-day>", -3.1135153092103742),
("from|since|after <time>", -3.1135153092103742),
("at <time-of-day>", -3.4011973816621555),
("time-of-day (latent)", -1.241713132308783),
("hh:mm", -3.4011973816621555),
("until <time>", -3.8066624897703196),
("hour", -1.0658224658451187), ("minute", -2.5538995212749516)],
n = 36}}),
[("<integer> to|till|before <hour-of-day>", -3.1986731175506815),
("from|since|after <time>", -3.1986731175506815),
("at <time-of-day>", -3.4863551900024623),
("time-of-day (latent)", -1.1837700970084166),
("hh:mm", -3.4863551900024623),
("until <time>", -3.891820298110627),
("hour", -1.0296194171811581), ("minute", -2.639057329615259)],
n = 40}}),
("Yom Ha'atzmaut",
Classifier{okData =
ClassData{prior = 0.0, unseen = -1.0986122886681098,
@ -2371,7 +2370,7 @@ classifiers
likelihoods = HashMap.fromList [], n = 0}}),
("a <unit-of-duration>",
Classifier{okData =
ClassData{prior = -0.7419373447293773,
ClassData{prior = -0.9555114450274363,
unseen = -3.5553480614894135,
likelihoods =
HashMap.fromList
@ -2387,14 +2386,14 @@ classifiers
("day (grain)", -2.1400661634962708)],
n = 10},
koData =
ClassData{prior = -0.6466271649250525,
unseen = -3.6109179126442243,
ClassData{prior = -0.48550781578170077,
unseen = -3.8501476017100584,
likelihoods =
HashMap.fromList
[("hour (grain)", -1.9740810260220096),
("quarter", -1.5040773967762742), ("hour", -1.9740810260220096),
("quarter (grain)", -1.5040773967762742)],
n = 11}}),
[("hour (grain)", -2.2192034840549946),
("quarter", -1.2636920390275583), ("hour", -2.2192034840549946),
("quarter (grain)", -1.2636920390275583)],
n = 16}}),
("at the beginning|end of <year>",
Classifier{okData =
ClassData{prior = 0.0, unseen = -2.3978952727983707,
@ -2507,7 +2506,7 @@ classifiers
likelihoods = HashMap.fromList [], n = 0}}),
("<duration> after|before|from|past <time>",
Classifier{okData =
ClassData{prior = -0.5212969236332861, unseen = -4.189654742026425,
ClassData{prior = -0.7691330875378672, unseen = -4.189654742026425,
likelihoods =
HashMap.fromList
[("a <unit-of-duration>now", -3.481240089335692),
@ -2535,36 +2534,34 @@ classifiers
("<integer> <unit-of-duration>now", -3.0757749812275272)],
n = 19},
koData =
ClassData{prior = -0.9007865453381898,
unseen = -3.9889840465642745,
ClassData{prior = -0.6225296133459919, unseen = -4.276666119016055,
likelihoods =
HashMap.fromList
[("quarterhour", -1.667706820558076),
("dayhour", -3.2771447329921766),
("<integer> <unit-of-duration>intersect", -3.2771447329921766),
[("quarterhour", -1.318240897874875),
("dayhour", -3.56953269648137),
("<integer> <unit-of-duration>intersect", -3.56953269648137),
("<integer> <unit-of-duration><day-of-month> (ordinal)",
-3.2771447329921766),
("a <unit-of-duration><time-of-day> am|pm",
-2.3608540011180215),
-3.56953269648137),
("a <unit-of-duration><time-of-day> am|pm", -2.065455299705096),
("a <unit-of-duration>time-of-day (latent)",
-2.3608540011180215),
("dayday", -2.583997552432231),
-2.065455299705096),
("dayday", -2.8763855159214247),
("<integer> <unit-of-duration>time-of-day (latent)",
-3.2771447329921766),
-3.56953269648137),
("a <unit-of-duration>noon|midnight|EOD|end of day",
-3.2771447329921766),
-3.164067588373206),
("<integer> <unit-of-duration><day-of-month> (ordinal or number) <named-month>",
-3.2771447329921766)],
n = 13}}),
-3.56953269648137)],
n = 22}}),
("quarter after|past <hour-of-day>",
Classifier{okData =
ClassData{prior = 0.0, unseen = -2.639057329615259,
ClassData{prior = 0.0, unseen = -3.1780538303479458,
likelihoods =
HashMap.fromList
[("noon|midnight|EOD|end of day", -1.8718021769015913),
("time-of-day (latent)", -0.9555114450274363),
("hour", -0.7731898882334817)],
n = 5},
[("noon|midnight|EOD|end of day", -2.03688192726104),
("time-of-day (latent)", -0.9382696385929302),
("hour", -0.7375989431307791)],
n = 10},
koData =
ClassData{prior = -infinity, unseen = -1.3862943611198906,
likelihoods = HashMap.fromList [], n = 0}}),
@ -3365,12 +3362,11 @@ classifiers
likelihoods = HashMap.fromList [], n = 0}}),
("quarter (grain)",
Classifier{okData =
ClassData{prior = -0.4595323293784402, unseen = -2.639057329615259,
ClassData{prior = -0.6931471805599453, unseen = -2.639057329615259,
likelihoods = HashMap.fromList [("", 0.0)], n = 12},
koData =
ClassData{prior = -0.9985288301111273,
unseen = -2.1972245773362196,
likelihoods = HashMap.fromList [("", 0.0)], n = 7}}),
ClassData{prior = -0.6931471805599453, unseen = -2.639057329615259,
likelihoods = HashMap.fromList [("", 0.0)], n = 12}}),
("last <cycle> of <time>",
Classifier{okData =
ClassData{prior = -0.916290731874155, unseen = -3.1354942159291497,

View File

@ -83,10 +83,10 @@ classifiers
likelihoods = HashMap.fromList [("", 0.0)], n = 3}}),
("integer (numeric)",
Classifier{okData =
ClassData{prior = -0.5901992113075029, unseen = -6.030685260261263,
likelihoods = HashMap.fromList [("", 0.0)], n = 414},
ClassData{prior = -0.5859242192393783, unseen = -6.040254711277414,
likelihoods = HashMap.fromList [("", 0.0)], n = 418},
koData =
ClassData{prior = -0.8079226951523735, unseen = -5.814130531825066,
ClassData{prior = -0.8132631617836908, unseen = -5.814130531825066,
likelihoods = HashMap.fromList [("", 0.0)], n = 333}}),
("<year> (bc|ad)",
Classifier{okData =
@ -119,8 +119,8 @@ classifiers
n = 1}}),
("noon|midnight|EOD|end of day",
Classifier{okData =
ClassData{prior = 0.0, unseen = -2.3025850929940455,
likelihoods = HashMap.fromList [("", 0.0)], n = 8},
ClassData{prior = 0.0, unseen = -2.3978952727983707,
likelihoods = HashMap.fromList [("", 0.0)], n = 9},
koData =
ClassData{prior = -infinity, unseen = -0.6931471805599453,
likelihoods = HashMap.fromList [], n = 0}}),
@ -2172,14 +2172,14 @@ classifiers
n = 1}}),
("time-of-day (latent)",
Classifier{okData =
ClassData{prior = -0.6834852696482084, unseen = -4.672828834461907,
ClassData{prior = -0.6649763035932491, unseen = -4.709530201312334,
likelihoods =
HashMap.fromList
[("integer (numeric)", -0.12014431184206321),
("integer (0..19)", -2.178532444324067)],
n = 104},
[("integer (numeric)", -0.11551288712184435),
("integer (0..19)", -2.2155737160044158)],
n = 108},
koData =
ClassData{prior = -0.70290335550531, unseen = -4.653960350157523,
ClassData{prior = -0.7221347174331976, unseen = -4.653960350157523,
likelihoods =
HashMap.fromList
[("integer (numeric)", -8.004270767353637e-2),
@ -2273,40 +2273,39 @@ classifiers
likelihoods = HashMap.fromList [], n = 0}}),
("<time-of-day> am|pm",
Classifier{okData =
ClassData{prior = -0.24445333790096085,
unseen = -5.631211781821365,
ClassData{prior = -0.2612154992636177, unseen = -5.659482215759621,
likelihoods =
HashMap.fromList
[("from|since|after <time>", -3.681710964635324),
("integer after|past <hour-of-day>", -4.241326752570746),
("at <time-of-day>", -2.4087452888224363),
("<time-of-day> o'clock", -4.529008825022527),
("half after|past <hour-of-day>", -4.529008825022527),
("second", -4.9344739331306915),
("hh:mm:ss", -4.9344739331306915),
("<hour-of-day> <integer>", -4.018183201256536),
("time-of-day (latent)", -1.6573292001385151),
("hhmm (latent)", -4.9344739331306915),
("hh:mm", -2.3317842476863078),
("quarter after|past <hour-of-day>", -4.018183201256536),
("until <time>", -4.241326752570746),
("about|exactly <time-of-day>", -4.9344739331306915),
("hour", -1.220901866426384),
("<time-of-day> sharp|exactly", -4.9344739331306915),
("minute", -1.7358008155800104)],
n = 130},
[("from|since|after <time>", -3.7100816617645394),
("integer after|past <hour-of-day>", -4.269697449699962),
("at <time-of-day>", -2.437115985951652),
("<time-of-day> o'clock", -4.557379522151743),
("half after|past <hour-of-day>", -4.557379522151743),
("second", -4.962844630259907),
("hh:mm:ss", -4.962844630259907),
("<hour-of-day> <integer>", -4.046553898385752),
("time-of-day (latent)", -1.6856998972677308),
("hhmm (latent)", -4.962844630259907),
("hh:mm", -2.3601549448155237),
("quarter after|past <hour-of-day>", -3.4587672334836332),
("until <time>", -4.269697449699962),
("about|exactly <time-of-day>", -4.962844630259907),
("hour", -1.2492725635555995),
("<time-of-day> sharp|exactly", -4.962844630259907),
("minute", -1.6856998972677308)],
n = 134},
koData =
ClassData{prior = -1.5284688499004333, unseen = -4.51085950651685,
ClassData{prior = -1.4701758451005928, unseen = -4.59511985013459,
likelihoods =
HashMap.fromList
[("<integer> to|till|before <hour-of-day>", -3.1135153092103742),
("from|since|after <time>", -3.1135153092103742),
("at <time-of-day>", -3.4011973816621555),
("time-of-day (latent)", -1.241713132308783),
("hh:mm", -3.4011973816621555),
("until <time>", -3.8066624897703196),
("hour", -1.0658224658451187), ("minute", -2.5538995212749516)],
n = 36}}),
[("<integer> to|till|before <hour-of-day>", -3.1986731175506815),
("from|since|after <time>", -3.1986731175506815),
("at <time-of-day>", -3.4863551900024623),
("time-of-day (latent)", -1.1837700970084166),
("hh:mm", -3.4863551900024623),
("until <time>", -3.891820298110627),
("hour", -1.0296194171811581), ("minute", -2.639057329615259)],
n = 40}}),
("Yom Ha'atzmaut",
Classifier{okData =
ClassData{prior = 0.0, unseen = -1.0986122886681098,
@ -2371,7 +2370,7 @@ classifiers
likelihoods = HashMap.fromList [], n = 0}}),
("a <unit-of-duration>",
Classifier{okData =
ClassData{prior = -0.7419373447293773,
ClassData{prior = -0.9555114450274363,
unseen = -3.5553480614894135,
likelihoods =
HashMap.fromList
@ -2387,14 +2386,14 @@ classifiers
("day (grain)", -2.1400661634962708)],
n = 10},
koData =
ClassData{prior = -0.6466271649250525,
unseen = -3.6109179126442243,
ClassData{prior = -0.48550781578170077,
unseen = -3.8501476017100584,
likelihoods =
HashMap.fromList
[("hour (grain)", -1.9740810260220096),
("quarter", -1.5040773967762742), ("hour", -1.9740810260220096),
("quarter (grain)", -1.5040773967762742)],
n = 11}}),
[("hour (grain)", -2.2192034840549946),
("quarter", -1.2636920390275583), ("hour", -2.2192034840549946),
("quarter (grain)", -1.2636920390275583)],
n = 16}}),
("at the beginning|end of <year>",
Classifier{okData =
ClassData{prior = 0.0, unseen = -2.3978952727983707,
@ -2507,7 +2506,7 @@ classifiers
likelihoods = HashMap.fromList [], n = 0}}),
("<duration> after|before|from|past <time>",
Classifier{okData =
ClassData{prior = -0.5212969236332861, unseen = -4.189654742026425,
ClassData{prior = -0.7691330875378672, unseen = -4.189654742026425,
likelihoods =
HashMap.fromList
[("a <unit-of-duration>now", -3.481240089335692),
@ -2535,36 +2534,34 @@ classifiers
("<integer> <unit-of-duration>now", -3.0757749812275272)],
n = 19},
koData =
ClassData{prior = -0.9007865453381898,
unseen = -3.9889840465642745,
ClassData{prior = -0.6225296133459919, unseen = -4.276666119016055,
likelihoods =
HashMap.fromList
[("quarterhour", -1.667706820558076),
("dayhour", -3.2771447329921766),
("<integer> <unit-of-duration>intersect", -3.2771447329921766),
[("quarterhour", -1.318240897874875),
("dayhour", -3.56953269648137),
("<integer> <unit-of-duration>intersect", -3.56953269648137),
("<integer> <unit-of-duration><day-of-month> (ordinal)",
-3.2771447329921766),
("a <unit-of-duration><time-of-day> am|pm",
-2.3608540011180215),
-3.56953269648137),
("a <unit-of-duration><time-of-day> am|pm", -2.065455299705096),
("a <unit-of-duration>time-of-day (latent)",
-2.3608540011180215),
("dayday", -2.583997552432231),
-2.065455299705096),
("dayday", -2.8763855159214247),
("<integer> <unit-of-duration>time-of-day (latent)",
-3.2771447329921766),
-3.56953269648137),
("a <unit-of-duration>noon|midnight|EOD|end of day",
-3.2771447329921766),
-3.164067588373206),
("<integer> <unit-of-duration><day-of-month> (ordinal or number) <named-month>",
-3.2771447329921766)],
n = 13}}),
-3.56953269648137)],
n = 22}}),
("quarter after|past <hour-of-day>",
Classifier{okData =
ClassData{prior = 0.0, unseen = -2.639057329615259,
ClassData{prior = 0.0, unseen = -3.1780538303479458,
likelihoods =
HashMap.fromList
[("noon|midnight|EOD|end of day", -1.8718021769015913),
("time-of-day (latent)", -0.9555114450274363),
("hour", -0.7731898882334817)],
n = 5},
[("noon|midnight|EOD|end of day", -2.03688192726104),
("time-of-day (latent)", -0.9382696385929302),
("hour", -0.7375989431307791)],
n = 10},
koData =
ClassData{prior = -infinity, unseen = -1.3862943611198906,
likelihoods = HashMap.fromList [], n = 0}}),
@ -3365,12 +3362,11 @@ classifiers
likelihoods = HashMap.fromList [], n = 0}}),
("quarter (grain)",
Classifier{okData =
ClassData{prior = -0.4595323293784402, unseen = -2.639057329615259,
ClassData{prior = -0.6931471805599453, unseen = -2.639057329615259,
likelihoods = HashMap.fromList [("", 0.0)], n = 12},
koData =
ClassData{prior = -0.9985288301111273,
unseen = -2.1972245773362196,
likelihoods = HashMap.fromList [("", 0.0)], n = 7}}),
ClassData{prior = -0.6931471805599453, unseen = -2.639057329615259,
likelihoods = HashMap.fromList [("", 0.0)], n = 12}}),
("last <cycle> of <time>",
Classifier{okData =
ClassData{prior = -0.916290731874155, unseen = -3.1354942159291497,

View File

@ -83,10 +83,10 @@ classifiers
likelihoods = HashMap.fromList [("", 0.0)], n = 3}}),
("integer (numeric)",
Classifier{okData =
ClassData{prior = -0.5901992113075029, unseen = -6.030685260261263,
likelihoods = HashMap.fromList [("", 0.0)], n = 414},
ClassData{prior = -0.5859242192393783, unseen = -6.040254711277414,
likelihoods = HashMap.fromList [("", 0.0)], n = 418},
koData =
ClassData{prior = -0.8079226951523735, unseen = -5.814130531825066,
ClassData{prior = -0.8132631617836908, unseen = -5.814130531825066,
likelihoods = HashMap.fromList [("", 0.0)], n = 333}}),
("<year> (bc|ad)",
Classifier{okData =
@ -119,8 +119,8 @@ classifiers
n = 1}}),
("noon|midnight|EOD|end of day",
Classifier{okData =
ClassData{prior = 0.0, unseen = -2.3025850929940455,
likelihoods = HashMap.fromList [("", 0.0)], n = 8},
ClassData{prior = 0.0, unseen = -2.3978952727983707,
likelihoods = HashMap.fromList [("", 0.0)], n = 9},
koData =
ClassData{prior = -infinity, unseen = -0.6931471805599453,
likelihoods = HashMap.fromList [], n = 0}}),
@ -2172,14 +2172,14 @@ classifiers
n = 1}}),
("time-of-day (latent)",
Classifier{okData =
ClassData{prior = -0.6834852696482084, unseen = -4.672828834461907,
ClassData{prior = -0.6649763035932491, unseen = -4.709530201312334,
likelihoods =
HashMap.fromList
[("integer (numeric)", -0.12014431184206321),
("integer (0..19)", -2.178532444324067)],
n = 104},
[("integer (numeric)", -0.11551288712184435),
("integer (0..19)", -2.2155737160044158)],
n = 108},
koData =
ClassData{prior = -0.70290335550531, unseen = -4.653960350157523,
ClassData{prior = -0.7221347174331976, unseen = -4.653960350157523,
likelihoods =
HashMap.fromList
[("integer (numeric)", -8.004270767353637e-2),
@ -2273,40 +2273,39 @@ classifiers
likelihoods = HashMap.fromList [], n = 0}}),
("<time-of-day> am|pm",
Classifier{okData =
ClassData{prior = -0.24445333790096085,
unseen = -5.631211781821365,
ClassData{prior = -0.2612154992636177, unseen = -5.659482215759621,
likelihoods =
HashMap.fromList
[("from|since|after <time>", -3.681710964635324),
("integer after|past <hour-of-day>", -4.241326752570746),
("at <time-of-day>", -2.4087452888224363),
("<time-of-day> o'clock", -4.529008825022527),
("half after|past <hour-of-day>", -4.529008825022527),
("second", -4.9344739331306915),
("hh:mm:ss", -4.9344739331306915),
("<hour-of-day> <integer>", -4.018183201256536),
("time-of-day (latent)", -1.6573292001385151),
("hhmm (latent)", -4.9344739331306915),
("hh:mm", -2.3317842476863078),
("quarter after|past <hour-of-day>", -4.018183201256536),
("until <time>", -4.241326752570746),
("about|exactly <time-of-day>", -4.9344739331306915),
("hour", -1.220901866426384),
("<time-of-day> sharp|exactly", -4.9344739331306915),
("minute", -1.7358008155800104)],
n = 130},
[("from|since|after <time>", -3.7100816617645394),
("integer after|past <hour-of-day>", -4.269697449699962),
("at <time-of-day>", -2.437115985951652),
("<time-of-day> o'clock", -4.557379522151743),
("half after|past <hour-of-day>", -4.557379522151743),
("second", -4.962844630259907),
("hh:mm:ss", -4.962844630259907),
("<hour-of-day> <integer>", -4.046553898385752),
("time-of-day (latent)", -1.6856998972677308),
("hhmm (latent)", -4.962844630259907),
("hh:mm", -2.3601549448155237),
("quarter after|past <hour-of-day>", -3.4587672334836332),
("until <time>", -4.269697449699962),
("about|exactly <time-of-day>", -4.962844630259907),
("hour", -1.2492725635555995),
("<time-of-day> sharp|exactly", -4.962844630259907),
("minute", -1.6856998972677308)],
n = 134},
koData =
ClassData{prior = -1.5284688499004333, unseen = -4.51085950651685,
ClassData{prior = -1.4701758451005928, unseen = -4.59511985013459,
likelihoods =
HashMap.fromList
[("<integer> to|till|before <hour-of-day>", -3.1135153092103742),
("from|since|after <time>", -3.1135153092103742),
("at <time-of-day>", -3.4011973816621555),
("time-of-day (latent)", -1.241713132308783),
("hh:mm", -3.4011973816621555),
("until <time>", -3.8066624897703196),
("hour", -1.0658224658451187), ("minute", -2.5538995212749516)],
n = 36}}),
[("<integer> to|till|before <hour-of-day>", -3.1986731175506815),
("from|since|after <time>", -3.1986731175506815),
("at <time-of-day>", -3.4863551900024623),
("time-of-day (latent)", -1.1837700970084166),
("hh:mm", -3.4863551900024623),
("until <time>", -3.891820298110627),
("hour", -1.0296194171811581), ("minute", -2.639057329615259)],
n = 40}}),
("Yom Ha'atzmaut",
Classifier{okData =
ClassData{prior = 0.0, unseen = -1.0986122886681098,
@ -2371,7 +2370,7 @@ classifiers
likelihoods = HashMap.fromList [], n = 0}}),
("a <unit-of-duration>",
Classifier{okData =
ClassData{prior = -0.7419373447293773,
ClassData{prior = -0.9555114450274363,
unseen = -3.5553480614894135,
likelihoods =
HashMap.fromList
@ -2387,14 +2386,14 @@ classifiers
("day (grain)", -2.1400661634962708)],
n = 10},
koData =
ClassData{prior = -0.6466271649250525,
unseen = -3.6109179126442243,
ClassData{prior = -0.48550781578170077,
unseen = -3.8501476017100584,
likelihoods =
HashMap.fromList
[("hour (grain)", -1.9740810260220096),
("quarter", -1.5040773967762742), ("hour", -1.9740810260220096),
("quarter (grain)", -1.5040773967762742)],
n = 11}}),
[("hour (grain)", -2.2192034840549946),
("quarter", -1.2636920390275583), ("hour", -2.2192034840549946),
("quarter (grain)", -1.2636920390275583)],
n = 16}}),
("at the beginning|end of <year>",
Classifier{okData =
ClassData{prior = 0.0, unseen = -2.3978952727983707,
@ -2507,7 +2506,7 @@ classifiers
likelihoods = HashMap.fromList [], n = 0}}),
("<duration> after|before|from|past <time>",
Classifier{okData =
ClassData{prior = -0.5212969236332861, unseen = -4.189654742026425,
ClassData{prior = -0.7691330875378672, unseen = -4.189654742026425,
likelihoods =
HashMap.fromList
[("a <unit-of-duration>now", -3.481240089335692),
@ -2535,36 +2534,34 @@ classifiers
("<integer> <unit-of-duration>now", -3.0757749812275272)],
n = 19},
koData =
ClassData{prior = -0.9007865453381898,
unseen = -3.9889840465642745,
ClassData{prior = -0.6225296133459919, unseen = -4.276666119016055,
likelihoods =
HashMap.fromList
[("quarterhour", -1.667706820558076),
("dayhour", -3.2771447329921766),
("<integer> <unit-of-duration>intersect", -3.2771447329921766),
[("quarterhour", -1.318240897874875),
("dayhour", -3.56953269648137),
("<integer> <unit-of-duration>intersect", -3.56953269648137),
("<integer> <unit-of-duration><day-of-month> (ordinal)",
-3.2771447329921766),
("a <unit-of-duration><time-of-day> am|pm",
-2.3608540011180215),
-3.56953269648137),
("a <unit-of-duration><time-of-day> am|pm", -2.065455299705096),
("a <unit-of-duration>time-of-day (latent)",
-2.3608540011180215),
("dayday", -2.583997552432231),
-2.065455299705096),
("dayday", -2.8763855159214247),
("<integer> <unit-of-duration>time-of-day (latent)",
-3.2771447329921766),
-3.56953269648137),
("a <unit-of-duration>noon|midnight|EOD|end of day",
-3.2771447329921766),
-3.164067588373206),
("<integer> <unit-of-duration><day-of-month> (ordinal or number) <named-month>",
-3.2771447329921766)],
n = 13}}),
-3.56953269648137)],
n = 22}}),
("quarter after|past <hour-of-day>",
Classifier{okData =
ClassData{prior = 0.0, unseen = -2.639057329615259,
ClassData{prior = 0.0, unseen = -3.1780538303479458,
likelihoods =
HashMap.fromList
[("noon|midnight|EOD|end of day", -1.8718021769015913),
("time-of-day (latent)", -0.9555114450274363),
("hour", -0.7731898882334817)],
n = 5},
[("noon|midnight|EOD|end of day", -2.03688192726104),
("time-of-day (latent)", -0.9382696385929302),
("hour", -0.7375989431307791)],
n = 10},
koData =
ClassData{prior = -infinity, unseen = -1.3862943611198906,
likelihoods = HashMap.fromList [], n = 0}}),
@ -3365,12 +3362,11 @@ classifiers
likelihoods = HashMap.fromList [], n = 0}}),
("quarter (grain)",
Classifier{okData =
ClassData{prior = -0.4595323293784402, unseen = -2.639057329615259,
ClassData{prior = -0.6931471805599453, unseen = -2.639057329615259,
likelihoods = HashMap.fromList [("", 0.0)], n = 12},
koData =
ClassData{prior = -0.9985288301111273,
unseen = -2.1972245773362196,
likelihoods = HashMap.fromList [("", 0.0)], n = 7}}),
ClassData{prior = -0.6931471805599453, unseen = -2.639057329615259,
likelihoods = HashMap.fromList [("", 0.0)], n = 12}}),
("last <cycle> of <time>",
Classifier{okData =
ClassData{prior = -0.916290731874155, unseen = -3.1354942159291497,

View File

@ -83,10 +83,10 @@ classifiers
likelihoods = HashMap.fromList [("", 0.0)], n = 3}}),
("integer (numeric)",
Classifier{okData =
ClassData{prior = -0.5901992113075029, unseen = -6.030685260261263,
likelihoods = HashMap.fromList [("", 0.0)], n = 414},
ClassData{prior = -0.5859242192393783, unseen = -6.040254711277414,
likelihoods = HashMap.fromList [("", 0.0)], n = 418},
koData =
ClassData{prior = -0.8079226951523735, unseen = -5.814130531825066,
ClassData{prior = -0.8132631617836908, unseen = -5.814130531825066,
likelihoods = HashMap.fromList [("", 0.0)], n = 333}}),
("<year> (bc|ad)",
Classifier{okData =
@ -119,8 +119,8 @@ classifiers
n = 1}}),
("noon|midnight|EOD|end of day",
Classifier{okData =
ClassData{prior = 0.0, unseen = -2.3025850929940455,
likelihoods = HashMap.fromList [("", 0.0)], n = 8},
ClassData{prior = 0.0, unseen = -2.3978952727983707,
likelihoods = HashMap.fromList [("", 0.0)], n = 9},
koData =
ClassData{prior = -infinity, unseen = -0.6931471805599453,
likelihoods = HashMap.fromList [], n = 0}}),
@ -2172,14 +2172,14 @@ classifiers
n = 1}}),
("time-of-day (latent)",
Classifier{okData =
ClassData{prior = -0.6834852696482084, unseen = -4.672828834461907,
ClassData{prior = -0.6649763035932491, unseen = -4.709530201312334,
likelihoods =
HashMap.fromList
[("integer (numeric)", -0.12014431184206321),
("integer (0..19)", -2.178532444324067)],
n = 104},
[("integer (numeric)", -0.11551288712184435),
("integer (0..19)", -2.2155737160044158)],
n = 108},
koData =
ClassData{prior = -0.70290335550531, unseen = -4.653960350157523,
ClassData{prior = -0.7221347174331976, unseen = -4.653960350157523,
likelihoods =
HashMap.fromList
[("integer (numeric)", -8.004270767353637e-2),
@ -2273,40 +2273,39 @@ classifiers
likelihoods = HashMap.fromList [], n = 0}}),
("<time-of-day> am|pm",
Classifier{okData =
ClassData{prior = -0.24445333790096085,
unseen = -5.631211781821365,
ClassData{prior = -0.2612154992636177, unseen = -5.659482215759621,
likelihoods =
HashMap.fromList
[("from|since|after <time>", -3.681710964635324),
("integer after|past <hour-of-day>", -4.241326752570746),
("at <time-of-day>", -2.4087452888224363),
("<time-of-day> o'clock", -4.529008825022527),
("half after|past <hour-of-day>", -4.529008825022527),
("second", -4.9344739331306915),
("hh:mm:ss", -4.9344739331306915),
("<hour-of-day> <integer>", -4.018183201256536),
("time-of-day (latent)", -1.6573292001385151),
("hhmm (latent)", -4.9344739331306915),
("hh:mm", -2.3317842476863078),
("quarter after|past <hour-of-day>", -4.018183201256536),
("until <time>", -4.241326752570746),
("about|exactly <time-of-day>", -4.9344739331306915),
("hour", -1.220901866426384),
("<time-of-day> sharp|exactly", -4.9344739331306915),
("minute", -1.7358008155800104)],
n = 130},
[("from|since|after <time>", -3.7100816617645394),
("integer after|past <hour-of-day>", -4.269697449699962),
("at <time-of-day>", -2.437115985951652),
("<time-of-day> o'clock", -4.557379522151743),
("half after|past <hour-of-day>", -4.557379522151743),
("second", -4.962844630259907),
("hh:mm:ss", -4.962844630259907),
("<hour-of-day> <integer>", -4.046553898385752),
("time-of-day (latent)", -1.6856998972677308),
("hhmm (latent)", -4.962844630259907),
("hh:mm", -2.3601549448155237),
("quarter after|past <hour-of-day>", -3.4587672334836332),
("until <time>", -4.269697449699962),
("about|exactly <time-of-day>", -4.962844630259907),
("hour", -1.2492725635555995),
("<time-of-day> sharp|exactly", -4.962844630259907),
("minute", -1.6856998972677308)],
n = 134},
koData =
ClassData{prior = -1.5284688499004333, unseen = -4.51085950651685,
ClassData{prior = -1.4701758451005928, unseen = -4.59511985013459,
likelihoods =
HashMap.fromList
[("<integer> to|till|before <hour-of-day>", -3.1135153092103742),
("from|since|after <time>", -3.1135153092103742),
("at <time-of-day>", -3.4011973816621555),
("time-of-day (latent)", -1.241713132308783),
("hh:mm", -3.4011973816621555),
("until <time>", -3.8066624897703196),
("hour", -1.0658224658451187), ("minute", -2.5538995212749516)],
n = 36}}),
[("<integer> to|till|before <hour-of-day>", -3.1986731175506815),
("from|since|after <time>", -3.1986731175506815),
("at <time-of-day>", -3.4863551900024623),
("time-of-day (latent)", -1.1837700970084166),
("hh:mm", -3.4863551900024623),
("until <time>", -3.891820298110627),
("hour", -1.0296194171811581), ("minute", -2.639057329615259)],
n = 40}}),
("Yom Ha'atzmaut",
Classifier{okData =
ClassData{prior = 0.0, unseen = -1.0986122886681098,
@ -2371,7 +2370,7 @@ classifiers
likelihoods = HashMap.fromList [], n = 0}}),
("a <unit-of-duration>",
Classifier{okData =
ClassData{prior = -0.7419373447293773,
ClassData{prior = -0.9555114450274363,
unseen = -3.5553480614894135,
likelihoods =
HashMap.fromList
@ -2387,14 +2386,14 @@ classifiers
("day (grain)", -2.1400661634962708)],
n = 10},
koData =
ClassData{prior = -0.6466271649250525,
unseen = -3.6109179126442243,
ClassData{prior = -0.48550781578170077,
unseen = -3.8501476017100584,
likelihoods =
HashMap.fromList
[("hour (grain)", -1.9740810260220096),
("quarter", -1.5040773967762742), ("hour", -1.9740810260220096),
("quarter (grain)", -1.5040773967762742)],
n = 11}}),
[("hour (grain)", -2.2192034840549946),
("quarter", -1.2636920390275583), ("hour", -2.2192034840549946),
("quarter (grain)", -1.2636920390275583)],
n = 16}}),
("at the beginning|end of <year>",
Classifier{okData =
ClassData{prior = 0.0, unseen = -2.3978952727983707,
@ -2507,7 +2506,7 @@ classifiers
likelihoods = HashMap.fromList [], n = 0}}),
("<duration> after|before|from|past <time>",
Classifier{okData =
ClassData{prior = -0.5212969236332861, unseen = -4.189654742026425,
ClassData{prior = -0.7691330875378672, unseen = -4.189654742026425,
likelihoods =
HashMap.fromList
[("a <unit-of-duration>now", -3.481240089335692),
@ -2535,36 +2534,34 @@ classifiers
("<integer> <unit-of-duration>now", -3.0757749812275272)],
n = 19},
koData =
ClassData{prior = -0.9007865453381898,
unseen = -3.9889840465642745,
ClassData{prior = -0.6225296133459919, unseen = -4.276666119016055,
likelihoods =
HashMap.fromList
[("quarterhour", -1.667706820558076),
("dayhour", -3.2771447329921766),
("<integer> <unit-of-duration>intersect", -3.2771447329921766),
[("quarterhour", -1.318240897874875),
("dayhour", -3.56953269648137),
("<integer> <unit-of-duration>intersect", -3.56953269648137),
("<integer> <unit-of-duration><day-of-month> (ordinal)",
-3.2771447329921766),
("a <unit-of-duration><time-of-day> am|pm",
-2.3608540011180215),
-3.56953269648137),
("a <unit-of-duration><time-of-day> am|pm", -2.065455299705096),
("a <unit-of-duration>time-of-day (latent)",
-2.3608540011180215),
("dayday", -2.583997552432231),
-2.065455299705096),
("dayday", -2.8763855159214247),
("<integer> <unit-of-duration>time-of-day (latent)",
-3.2771447329921766),
-3.56953269648137),
("a <unit-of-duration>noon|midnight|EOD|end of day",
-3.2771447329921766),
-3.164067588373206),
("<integer> <unit-of-duration><day-of-month> (ordinal or number) <named-month>",
-3.2771447329921766)],
n = 13}}),
-3.56953269648137)],
n = 22}}),
("quarter after|past <hour-of-day>",
Classifier{okData =
ClassData{prior = 0.0, unseen = -2.639057329615259,
ClassData{prior = 0.0, unseen = -3.1780538303479458,
likelihoods =
HashMap.fromList
[("noon|midnight|EOD|end of day", -1.8718021769015913),
("time-of-day (latent)", -0.9555114450274363),
("hour", -0.7731898882334817)],
n = 5},
[("noon|midnight|EOD|end of day", -2.03688192726104),
("time-of-day (latent)", -0.9382696385929302),
("hour", -0.7375989431307791)],
n = 10},
koData =
ClassData{prior = -infinity, unseen = -1.3862943611198906,
likelihoods = HashMap.fromList [], n = 0}}),
@ -3365,12 +3362,11 @@ classifiers
likelihoods = HashMap.fromList [], n = 0}}),
("quarter (grain)",
Classifier{okData =
ClassData{prior = -0.4595323293784402, unseen = -2.639057329615259,
ClassData{prior = -0.6931471805599453, unseen = -2.639057329615259,
likelihoods = HashMap.fromList [("", 0.0)], n = 12},
koData =
ClassData{prior = -0.9985288301111273,
unseen = -2.1972245773362196,
likelihoods = HashMap.fromList [("", 0.0)], n = 7}}),
ClassData{prior = -0.6931471805599453, unseen = -2.639057329615259,
likelihoods = HashMap.fromList [("", 0.0)], n = 12}}),
("last <cycle> of <time>",
Classifier{okData =
ClassData{prior = -0.916290731874155, unseen = -3.1354942159291497,

View File

@ -90,10 +90,10 @@ classifiers
likelihoods = HashMap.fromList [("", 0.0)], n = 3}}),
("integer (numeric)",
Classifier{okData =
ClassData{prior = -0.5872959877578287, unseen = -6.12029741895095,
likelihoods = HashMap.fromList [("", 0.0)], n = 453},
ClassData{prior = -0.5834006929588647, unseen = -6.129050210060545,
likelihoods = HashMap.fromList [("", 0.0)], n = 457},
koData =
ClassData{prior = -0.8115439014150917,
ClassData{prior = -0.8164398720272984,
unseen = -5.8971538676367405,
likelihoods = HashMap.fromList [("", 0.0)], n = 362}}),
("<year> (bc|ad)",
@ -127,8 +127,8 @@ classifiers
n = 2}}),
("noon|midnight|EOD|end of day",
Classifier{okData =
ClassData{prior = 0.0, unseen = -2.3025850929940455,
likelihoods = HashMap.fromList [("", 0.0)], n = 8},
ClassData{prior = 0.0, unseen = -2.3978952727983707,
likelihoods = HashMap.fromList [("", 0.0)], n = 9},
koData =
ClassData{prior = -infinity, unseen = -0.6931471805599453,
likelihoods = HashMap.fromList [], n = 0}}),
@ -2303,14 +2303,14 @@ classifiers
n = 1}}),
("time-of-day (latent)",
Classifier{okData =
ClassData{prior = -0.6931471805599453, unseen = -4.672828834461907,
ClassData{prior = -0.6744550475477927, unseen = -4.709530201312334,
likelihoods =
HashMap.fromList
[("integer (numeric)", -0.12014431184206321),
("integer (0..19)", -2.178532444324067)],
n = 104},
[("integer (numeric)", -0.11551288712184435),
("integer (0..19)", -2.2155737160044158)],
n = 108},
koData =
ClassData{prior = -0.6931471805599453, unseen = -4.672828834461907,
ClassData{prior = -0.7121953755306398, unseen = -4.672828834461907,
likelihoods =
HashMap.fromList
[("integer (numeric)", -7.847161544149521e-2),
@ -2404,40 +2404,39 @@ classifiers
likelihoods = HashMap.fromList [], n = 0}}),
("<time-of-day> am|pm",
Classifier{okData =
ClassData{prior = -0.24709679233670262,
unseen = -5.645446897643238,
ClassData{prior = -0.2634948468377771, unseen = -5.673323267171493,
likelihoods =
HashMap.fromList
[("from|since|after <time>", -3.6959969218828004),
("integer after|past <hour-of-day>", -4.255612709818223),
("at <time-of-day>", -2.3838105329166317),
("<time-of-day> o'clock", -4.543294782270004),
("half after|past <hour-of-day>", -4.543294782270004),
("second", -4.948759890378168),
("hh:mm:ss", -4.948759890378168),
("<hour-of-day> <integer>", -4.032469158504013),
("time-of-day (latent)", -1.6716151573859919),
("hhmm (latent)", -4.948759890378168),
("hh:mm", -2.3097025607629096),
("quarter after|past <hour-of-day>", -4.032469158504013),
("until <time>", -4.255612709818223),
("about|exactly <time-of-day>", -4.948759890378168),
("hour", -1.2351878236738605),
("<time-of-day> sharp|exactly", -4.948759890378168),
("minute", -1.7100814382137877)],
n = 132},
[("from|since|after <time>", -3.7239707739252066),
("integer after|past <hour-of-day>", -4.283586561860629),
("at <time-of-day>", -2.4117843849590375),
("<time-of-day> o'clock", -4.57126863431241),
("half after|past <hour-of-day>", -4.57126863431241),
("second", -4.976733742420574),
("hh:mm:ss", -4.976733742420574),
("<hour-of-day> <integer>", -4.060443010546419),
("time-of-day (latent)", -1.6995890094283979),
("hhmm (latent)", -4.976733742420574),
("hh:mm", -2.337676412805316),
("quarter after|past <hour-of-day>", -3.4726563456443005),
("until <time>", -4.283586561860629),
("about|exactly <time-of-day>", -4.976733742420574),
("hour", -1.2631616757162665),
("<time-of-day> sharp|exactly", -4.976733742420574),
("minute", -1.6625477377480489)],
n = 136},
koData =
ClassData{prior = -1.518980802278849, unseen = -4.532599493153256,
ClassData{prior = -1.4625776658695213, unseen = -4.61512051684126,
likelihoods =
HashMap.fromList
[("<integer> to|till|before <hour-of-day>", -3.1354942159291497),
("from|since|after <time>", -3.1354942159291497),
("at <time-of-day>", -3.4231762883809305),
("time-of-day (latent)", -1.2259517110447111),
("hh:mm", -3.4231762883809305),
("until <time>", -3.828641396489095),
("hour", -1.0560526742493137), ("minute", -2.575878427993727)],
n = 37}}),
[("<integer> to|till|before <hour-of-day>", -3.2188758248682006),
("from|since|after <time>", -3.2188758248682006),
("at <time-of-day>", -3.506557897319982),
("time-of-day (latent)", -1.171182981502945),
("hh:mm", -3.506557897319982),
("until <time>", -3.912023005428146),
("hour", -1.0216512475319814), ("minute", -2.659260036932778)],
n = 41}}),
("Yom Ha'atzmaut",
Classifier{okData =
ClassData{prior = 0.0, unseen = -1.0986122886681098,
@ -2517,7 +2516,7 @@ classifiers
likelihoods = HashMap.fromList [], n = 0}}),
("a <unit-of-duration>",
Classifier{okData =
ClassData{prior = -0.7419373447293773,
ClassData{prior = -0.9555114450274363,
unseen = -3.5553480614894135,
likelihoods =
HashMap.fromList
@ -2533,14 +2532,14 @@ classifiers
("day (grain)", -2.1400661634962708)],
n = 10},
koData =
ClassData{prior = -0.6466271649250525,
unseen = -3.6109179126442243,
ClassData{prior = -0.48550781578170077,
unseen = -3.8501476017100584,
likelihoods =
HashMap.fromList
[("hour (grain)", -1.9740810260220096),
("quarter", -1.5040773967762742), ("hour", -1.9740810260220096),
("quarter (grain)", -1.5040773967762742)],
n = 11}}),
[("hour (grain)", -2.2192034840549946),
("quarter", -1.2636920390275583), ("hour", -2.2192034840549946),
("quarter (grain)", -1.2636920390275583)],
n = 16}}),
("at the beginning|end of <year>",
Classifier{okData =
ClassData{prior = 0.0, unseen = -2.3978952727983707,
@ -2654,7 +2653,7 @@ classifiers
likelihoods = HashMap.fromList [], n = 0}}),
("<duration> after|before|from|past <time>",
Classifier{okData =
ClassData{prior = -0.5212969236332861, unseen = -4.189654742026425,
ClassData{prior = -0.7691330875378672, unseen = -4.189654742026425,
likelihoods =
HashMap.fromList
[("a <unit-of-duration>now", -3.481240089335692),
@ -2682,36 +2681,34 @@ classifiers
("<integer> <unit-of-duration>now", -3.0757749812275272)],
n = 19},
koData =
ClassData{prior = -0.9007865453381898,
unseen = -3.9889840465642745,
ClassData{prior = -0.6225296133459919, unseen = -4.276666119016055,
likelihoods =
HashMap.fromList
[("quarterhour", -1.667706820558076),
("dayhour", -3.2771447329921766),
("<integer> <unit-of-duration>intersect", -3.2771447329921766),
[("quarterhour", -1.318240897874875),
("dayhour", -3.56953269648137),
("<integer> <unit-of-duration>intersect", -3.56953269648137),
("<integer> <unit-of-duration><day-of-month> (ordinal)",
-3.2771447329921766),
("a <unit-of-duration><time-of-day> am|pm",
-2.3608540011180215),
-3.56953269648137),
("a <unit-of-duration><time-of-day> am|pm", -2.065455299705096),
("a <unit-of-duration>time-of-day (latent)",
-2.3608540011180215),
("dayday", -2.583997552432231),
-2.065455299705096),
("dayday", -2.8763855159214247),
("<integer> <unit-of-duration>time-of-day (latent)",
-3.2771447329921766),
-3.56953269648137),
("a <unit-of-duration>noon|midnight|EOD|end of day",
-3.2771447329921766),
-3.164067588373206),
("<integer> <unit-of-duration><day-of-month> (ordinal or number) <named-month>",
-3.2771447329921766)],
n = 13}}),
-3.56953269648137)],
n = 22}}),
("quarter after|past <hour-of-day>",
Classifier{okData =
ClassData{prior = 0.0, unseen = -2.639057329615259,
ClassData{prior = 0.0, unseen = -3.1780538303479458,
likelihoods =
HashMap.fromList
[("noon|midnight|EOD|end of day", -1.8718021769015913),
("time-of-day (latent)", -0.9555114450274363),
("hour", -0.7731898882334817)],
n = 5},
[("noon|midnight|EOD|end of day", -2.03688192726104),
("time-of-day (latent)", -0.9382696385929302),
("hour", -0.7375989431307791)],
n = 10},
koData =
ClassData{prior = -infinity, unseen = -1.3862943611198906,
likelihoods = HashMap.fromList [], n = 0}}),
@ -3580,12 +3577,11 @@ classifiers
likelihoods = HashMap.fromList [], n = 0}}),
("quarter (grain)",
Classifier{okData =
ClassData{prior = -0.4595323293784402, unseen = -2.639057329615259,
ClassData{prior = -0.6931471805599453, unseen = -2.639057329615259,
likelihoods = HashMap.fromList [("", 0.0)], n = 12},
koData =
ClassData{prior = -0.9985288301111273,
unseen = -2.1972245773362196,
likelihoods = HashMap.fromList [("", 0.0)], n = 7}}),
ClassData{prior = -0.6931471805599453, unseen = -2.639057329615259,
likelihoods = HashMap.fromList [("", 0.0)], n = 12}}),
("last <cycle> of <time>",
Classifier{okData =
ClassData{prior = -0.916290731874155, unseen = -3.1354942159291497,

View File

@ -83,10 +83,10 @@ classifiers
likelihoods = HashMap.fromList [("", 0.0)], n = 3}}),
("integer (numeric)",
Classifier{okData =
ClassData{prior = -0.6226441149777653, unseen = -6.059123195581797,
likelihoods = HashMap.fromList [("", 0.0)], n = 426},
ClassData{prior = -0.6183233887622006, unseen = -6.068425588244111,
likelihoods = HashMap.fromList [("", 0.0)], n = 430},
koData =
ClassData{prior = -0.7690005230782048, unseen = -5.91350300563827,
ClassData{prior = -0.7740256592808779, unseen = -5.91350300563827,
likelihoods = HashMap.fromList [("", 0.0)], n = 368}}),
("<year> (bc|ad)",
Classifier{okData =
@ -119,8 +119,8 @@ classifiers
n = 3}}),
("noon|midnight|EOD|end of day",
Classifier{okData =
ClassData{prior = 0.0, unseen = -2.3025850929940455,
likelihoods = HashMap.fromList [("", 0.0)], n = 8},
ClassData{prior = 0.0, unseen = -2.3978952727983707,
likelihoods = HashMap.fromList [("", 0.0)], n = 9},
koData =
ClassData{prior = -infinity, unseen = -0.6931471805599453,
likelihoods = HashMap.fromList [], n = 0}}),
@ -2196,14 +2196,14 @@ classifiers
n = 1}}),
("time-of-day (latent)",
Classifier{okData =
ClassData{prior = -0.702716631576096, unseen = -4.672828834461907,
ClassData{prior = -0.6838447878976319, unseen = -4.709530201312334,
likelihoods =
HashMap.fromList
[("integer (numeric)", -0.12014431184206321),
("integer (0..19)", -2.178532444324067)],
n = 104},
[("integer (numeric)", -0.11551288712184435),
("integer (0..19)", -2.2155737160044158)],
n = 108},
koData =
ClassData{prior = -0.6836684366054016,
ClassData{prior = -0.7025369209097844,
unseen = -4.6913478822291435,
likelihoods =
HashMap.fromList
@ -2299,40 +2299,39 @@ classifiers
likelihoods = HashMap.fromList [], n = 0}}),
("<time-of-day> am|pm",
Classifier{okData =
ClassData{prior = -0.24709679233670262,
unseen = -5.645446897643238,
ClassData{prior = -0.2634948468377771, unseen = -5.673323267171493,
likelihoods =
HashMap.fromList
[("from|since|after <time>", -3.6959969218828004),
("integer after|past <hour-of-day>", -4.255612709818223),
("at <time-of-day>", -2.3838105329166317),
("<time-of-day> o'clock", -4.543294782270004),
("half after|past <hour-of-day>", -4.543294782270004),
("second", -4.948759890378168),
("hh:mm:ss", -4.948759890378168),
("<hour-of-day> <integer>", -4.032469158504013),
("time-of-day (latent)", -1.6716151573859919),
("hhmm (latent)", -4.948759890378168),
("hh:mm", -2.3097025607629096),
("quarter after|past <hour-of-day>", -4.032469158504013),
("until <time>", -4.255612709818223),
("about|exactly <time-of-day>", -4.948759890378168),
("hour", -1.2351878236738605),
("<time-of-day> sharp|exactly", -4.948759890378168),
("minute", -1.7100814382137877)],
n = 132},
[("from|since|after <time>", -3.7239707739252066),
("integer after|past <hour-of-day>", -4.283586561860629),
("at <time-of-day>", -2.4117843849590375),
("<time-of-day> o'clock", -4.57126863431241),
("half after|past <hour-of-day>", -4.57126863431241),
("second", -4.976733742420574),
("hh:mm:ss", -4.976733742420574),
("<hour-of-day> <integer>", -4.060443010546419),
("time-of-day (latent)", -1.6995890094283979),
("hhmm (latent)", -4.976733742420574),
("hh:mm", -2.337676412805316),
("quarter after|past <hour-of-day>", -3.4726563456443005),
("until <time>", -4.283586561860629),
("about|exactly <time-of-day>", -4.976733742420574),
("hour", -1.2631616757162665),
("<time-of-day> sharp|exactly", -4.976733742420574),
("minute", -1.6625477377480489)],
n = 136},
koData =
ClassData{prior = -1.518980802278849, unseen = -4.532599493153256,
ClassData{prior = -1.4625776658695213, unseen = -4.61512051684126,
likelihoods =
HashMap.fromList
[("<integer> to|till|before <hour-of-day>", -3.1354942159291497),
("from|since|after <time>", -3.1354942159291497),
("at <time-of-day>", -3.4231762883809305),
("time-of-day (latent)", -1.2259517110447111),
("hh:mm", -3.4231762883809305),
("until <time>", -3.828641396489095),
("hour", -1.0560526742493137), ("minute", -2.575878427993727)],
n = 37}}),
[("<integer> to|till|before <hour-of-day>", -3.2188758248682006),
("from|since|after <time>", -3.2188758248682006),
("at <time-of-day>", -3.506557897319982),
("time-of-day (latent)", -1.171182981502945),
("hh:mm", -3.506557897319982),
("until <time>", -3.912023005428146),
("hour", -1.0216512475319814), ("minute", -2.659260036932778)],
n = 41}}),
("Yom Ha'atzmaut",
Classifier{okData =
ClassData{prior = 0.0, unseen = -1.0986122886681098,
@ -2405,7 +2404,7 @@ classifiers
likelihoods = HashMap.fromList [], n = 0}}),
("a <unit-of-duration>",
Classifier{okData =
ClassData{prior = -0.6931471805599453,
ClassData{prior = -0.8979415932059586,
unseen = -3.6109179126442243,
likelihoods =
HashMap.fromList
@ -2421,14 +2420,14 @@ classifiers
("day (grain)", -2.1972245773362196)],
n = 11},
koData =
ClassData{prior = -0.6931471805599453,
unseen = -3.6109179126442243,
ClassData{prior = -0.5232481437645479,
unseen = -3.8501476017100584,
likelihoods =
HashMap.fromList
[("hour (grain)", -1.9740810260220096),
("quarter", -1.5040773967762742), ("hour", -1.9740810260220096),
("quarter (grain)", -1.5040773967762742)],
n = 11}}),
[("hour (grain)", -2.2192034840549946),
("quarter", -1.2636920390275583), ("hour", -2.2192034840549946),
("quarter (grain)", -1.2636920390275583)],
n = 16}}),
("at the beginning|end of <year>",
Classifier{okData =
ClassData{prior = 0.0, unseen = -2.3978952727983707,
@ -2542,7 +2541,7 @@ classifiers
likelihoods = HashMap.fromList [], n = 0}}),
("<duration> after|before|from|past <time>",
Classifier{okData =
ClassData{prior = -0.5520685823000397, unseen = -4.204692619390966,
ClassData{prior = -0.7932306391169278, unseen = -4.204692619390966,
likelihoods =
HashMap.fromList
[("a <unit-of-duration>now", -3.4965075614664802),
@ -2570,37 +2569,35 @@ classifiers
("<integer> <unit-of-duration>now", -3.0910424533583156)],
n = 19},
koData =
ClassData{prior = -0.8574502318512216, unseen = -4.04305126783455,
ClassData{prior = -0.6021754023542185, unseen = -4.31748811353631,
likelihoods =
HashMap.fromList
[("quarterhour", -1.7227665977411035),
("dayhour", -3.332204510175204),
("<integer> <unit-of-duration>intersect", -3.332204510175204),
[("quarterhour", -1.3596261140377293),
("dayhour", -3.6109179126442243),
("<integer> <unit-of-duration>intersect", -3.6109179126442243),
("<integer> <unit-of-duration><day-of-month> (ordinal)",
-3.332204510175204),
("monthnograin", -3.332204510175204),
("a <unit-of-duration><time-of-day> am|pm",
-2.4159137783010487),
("a <unit-of-duration>time-of-day (latent)",
-2.4159137783010487),
("dayday", -2.639057329615259),
-3.6109179126442243),
("monthnograin", -3.6109179126442243),
("a <unit-of-duration><time-of-day> am|pm", -2.10684051586795),
("a <unit-of-duration>time-of-day (latent)", -2.10684051586795),
("dayday", -2.917770732084279),
("<integer> <unit-of-duration>time-of-day (latent)",
-3.332204510175204),
-3.6109179126442243),
("a <unit-of-duration>noon|midnight|EOD|end of day",
-3.332204510175204),
-3.20545280453606),
("<integer> <unit-of-duration><day-of-month> (ordinal or number) <named-month>",
-3.332204510175204),
("<integer> <unit-of-duration>now", -3.332204510175204)],
n = 14}}),
-3.6109179126442243),
("<integer> <unit-of-duration>now", -3.6109179126442243)],
n = 23}}),
("quarter after|past <hour-of-day>",
Classifier{okData =
ClassData{prior = 0.0, unseen = -2.639057329615259,
ClassData{prior = 0.0, unseen = -3.1780538303479458,
likelihoods =
HashMap.fromList
[("noon|midnight|EOD|end of day", -1.8718021769015913),
("time-of-day (latent)", -0.9555114450274363),
("hour", -0.7731898882334817)],
n = 5},
[("noon|midnight|EOD|end of day", -2.03688192726104),
("time-of-day (latent)", -0.9382696385929302),
("hour", -0.7375989431307791)],
n = 10},
koData =
ClassData{prior = -infinity, unseen = -1.3862943611198906,
likelihoods = HashMap.fromList [], n = 0}}),
@ -3427,12 +3424,11 @@ classifiers
likelihoods = HashMap.fromList [], n = 0}}),
("quarter (grain)",
Classifier{okData =
ClassData{prior = -0.4595323293784402, unseen = -2.639057329615259,
ClassData{prior = -0.6931471805599453, unseen = -2.639057329615259,
likelihoods = HashMap.fromList [("", 0.0)], n = 12},
koData =
ClassData{prior = -0.9985288301111273,
unseen = -2.1972245773362196,
likelihoods = HashMap.fromList [("", 0.0)], n = 7}}),
ClassData{prior = -0.6931471805599453, unseen = -2.639057329615259,
likelihoods = HashMap.fromList [("", 0.0)], n = 12}}),
("last <cycle> of <time>",
Classifier{okData =
ClassData{prior = -0.916290731874155, unseen = -3.1354942159291497,

View File

@ -83,10 +83,10 @@ classifiers
likelihoods = HashMap.fromList [("", 0.0)], n = 3}}),
("integer (numeric)",
Classifier{okData =
ClassData{prior = -0.5901992113075029, unseen = -6.030685260261263,
likelihoods = HashMap.fromList [("", 0.0)], n = 414},
ClassData{prior = -0.5859242192393783, unseen = -6.040254711277414,
likelihoods = HashMap.fromList [("", 0.0)], n = 418},
koData =
ClassData{prior = -0.8079226951523735, unseen = -5.814130531825066,
ClassData{prior = -0.8132631617836908, unseen = -5.814130531825066,
likelihoods = HashMap.fromList [("", 0.0)], n = 333}}),
("<year> (bc|ad)",
Classifier{okData =
@ -119,8 +119,8 @@ classifiers
n = 1}}),
("noon|midnight|EOD|end of day",
Classifier{okData =
ClassData{prior = 0.0, unseen = -2.3025850929940455,
likelihoods = HashMap.fromList [("", 0.0)], n = 8},
ClassData{prior = 0.0, unseen = -2.3978952727983707,
likelihoods = HashMap.fromList [("", 0.0)], n = 9},
koData =
ClassData{prior = -infinity, unseen = -0.6931471805599453,
likelihoods = HashMap.fromList [], n = 0}}),
@ -2172,14 +2172,14 @@ classifiers
n = 1}}),
("time-of-day (latent)",
Classifier{okData =
ClassData{prior = -0.6834852696482084, unseen = -4.672828834461907,
ClassData{prior = -0.6649763035932491, unseen = -4.709530201312334,
likelihoods =
HashMap.fromList
[("integer (numeric)", -0.12014431184206321),
("integer (0..19)", -2.178532444324067)],
n = 104},
[("integer (numeric)", -0.11551288712184435),
("integer (0..19)", -2.2155737160044158)],
n = 108},
koData =
ClassData{prior = -0.70290335550531, unseen = -4.653960350157523,
ClassData{prior = -0.7221347174331976, unseen = -4.653960350157523,
likelihoods =
HashMap.fromList
[("integer (numeric)", -8.004270767353637e-2),
@ -2273,40 +2273,39 @@ classifiers
likelihoods = HashMap.fromList [], n = 0}}),
("<time-of-day> am|pm",
Classifier{okData =
ClassData{prior = -0.24445333790096085,
unseen = -5.631211781821365,
ClassData{prior = -0.2612154992636177, unseen = -5.659482215759621,
likelihoods =
HashMap.fromList
[("from|since|after <time>", -3.681710964635324),
("integer after|past <hour-of-day>", -4.241326752570746),
("at <time-of-day>", -2.4087452888224363),
("<time-of-day> o'clock", -4.529008825022527),
("half after|past <hour-of-day>", -4.529008825022527),
("second", -4.9344739331306915),
("hh:mm:ss", -4.9344739331306915),
("<hour-of-day> <integer>", -4.018183201256536),
("time-of-day (latent)", -1.6573292001385151),
("hhmm (latent)", -4.9344739331306915),
("hh:mm", -2.3317842476863078),
("quarter after|past <hour-of-day>", -4.018183201256536),
("until <time>", -4.241326752570746),
("about|exactly <time-of-day>", -4.9344739331306915),
("hour", -1.220901866426384),
("<time-of-day> sharp|exactly", -4.9344739331306915),
("minute", -1.7358008155800104)],
n = 130},
[("from|since|after <time>", -3.7100816617645394),
("integer after|past <hour-of-day>", -4.269697449699962),
("at <time-of-day>", -2.437115985951652),
("<time-of-day> o'clock", -4.557379522151743),
("half after|past <hour-of-day>", -4.557379522151743),
("second", -4.962844630259907),
("hh:mm:ss", -4.962844630259907),
("<hour-of-day> <integer>", -4.046553898385752),
("time-of-day (latent)", -1.6856998972677308),
("hhmm (latent)", -4.962844630259907),
("hh:mm", -2.3601549448155237),
("quarter after|past <hour-of-day>", -3.4587672334836332),
("until <time>", -4.269697449699962),
("about|exactly <time-of-day>", -4.962844630259907),
("hour", -1.2492725635555995),
("<time-of-day> sharp|exactly", -4.962844630259907),
("minute", -1.6856998972677308)],
n = 134},
koData =
ClassData{prior = -1.5284688499004333, unseen = -4.51085950651685,
ClassData{prior = -1.4701758451005928, unseen = -4.59511985013459,
likelihoods =
HashMap.fromList
[("<integer> to|till|before <hour-of-day>", -3.1135153092103742),
("from|since|after <time>", -3.1135153092103742),
("at <time-of-day>", -3.4011973816621555),
("time-of-day (latent)", -1.241713132308783),
("hh:mm", -3.4011973816621555),
("until <time>", -3.8066624897703196),
("hour", -1.0658224658451187), ("minute", -2.5538995212749516)],
n = 36}}),
[("<integer> to|till|before <hour-of-day>", -3.1986731175506815),
("from|since|after <time>", -3.1986731175506815),
("at <time-of-day>", -3.4863551900024623),
("time-of-day (latent)", -1.1837700970084166),
("hh:mm", -3.4863551900024623),
("until <time>", -3.891820298110627),
("hour", -1.0296194171811581), ("minute", -2.639057329615259)],
n = 40}}),
("Yom Ha'atzmaut",
Classifier{okData =
ClassData{prior = 0.0, unseen = -1.0986122886681098,
@ -2371,7 +2370,7 @@ classifiers
likelihoods = HashMap.fromList [], n = 0}}),
("a <unit-of-duration>",
Classifier{okData =
ClassData{prior = -0.7419373447293773,
ClassData{prior = -0.9555114450274363,
unseen = -3.5553480614894135,
likelihoods =
HashMap.fromList
@ -2387,14 +2386,14 @@ classifiers
("day (grain)", -2.1400661634962708)],
n = 10},
koData =
ClassData{prior = -0.6466271649250525,
unseen = -3.6109179126442243,
ClassData{prior = -0.48550781578170077,
unseen = -3.8501476017100584,
likelihoods =
HashMap.fromList
[("hour (grain)", -1.9740810260220096),
("quarter", -1.5040773967762742), ("hour", -1.9740810260220096),
("quarter (grain)", -1.5040773967762742)],
n = 11}}),
[("hour (grain)", -2.2192034840549946),
("quarter", -1.2636920390275583), ("hour", -2.2192034840549946),
("quarter (grain)", -1.2636920390275583)],
n = 16}}),
("at the beginning|end of <year>",
Classifier{okData =
ClassData{prior = 0.0, unseen = -2.3978952727983707,
@ -2507,7 +2506,7 @@ classifiers
likelihoods = HashMap.fromList [], n = 0}}),
("<duration> after|before|from|past <time>",
Classifier{okData =
ClassData{prior = -0.5212969236332861, unseen = -4.189654742026425,
ClassData{prior = -0.7691330875378672, unseen = -4.189654742026425,
likelihoods =
HashMap.fromList
[("a <unit-of-duration>now", -3.481240089335692),
@ -2535,36 +2534,34 @@ classifiers
("<integer> <unit-of-duration>now", -3.0757749812275272)],
n = 19},
koData =
ClassData{prior = -0.9007865453381898,
unseen = -3.9889840465642745,
ClassData{prior = -0.6225296133459919, unseen = -4.276666119016055,
likelihoods =
HashMap.fromList
[("quarterhour", -1.667706820558076),
("dayhour", -3.2771447329921766),
("<integer> <unit-of-duration>intersect", -3.2771447329921766),
[("quarterhour", -1.318240897874875),
("dayhour", -3.56953269648137),
("<integer> <unit-of-duration>intersect", -3.56953269648137),
("<integer> <unit-of-duration><day-of-month> (ordinal)",
-3.2771447329921766),
("a <unit-of-duration><time-of-day> am|pm",
-2.3608540011180215),
-3.56953269648137),
("a <unit-of-duration><time-of-day> am|pm", -2.065455299705096),
("a <unit-of-duration>time-of-day (latent)",
-2.3608540011180215),
("dayday", -2.583997552432231),
-2.065455299705096),
("dayday", -2.8763855159214247),
("<integer> <unit-of-duration>time-of-day (latent)",
-3.2771447329921766),
-3.56953269648137),
("a <unit-of-duration>noon|midnight|EOD|end of day",
-3.2771447329921766),
-3.164067588373206),
("<integer> <unit-of-duration><day-of-month> (ordinal or number) <named-month>",
-3.2771447329921766)],
n = 13}}),
-3.56953269648137)],
n = 22}}),
("quarter after|past <hour-of-day>",
Classifier{okData =
ClassData{prior = 0.0, unseen = -2.639057329615259,
ClassData{prior = 0.0, unseen = -3.1780538303479458,
likelihoods =
HashMap.fromList
[("noon|midnight|EOD|end of day", -1.8718021769015913),
("time-of-day (latent)", -0.9555114450274363),
("hour", -0.7731898882334817)],
n = 5},
[("noon|midnight|EOD|end of day", -2.03688192726104),
("time-of-day (latent)", -0.9382696385929302),
("hour", -0.7375989431307791)],
n = 10},
koData =
ClassData{prior = -infinity, unseen = -1.3862943611198906,
likelihoods = HashMap.fromList [], n = 0}}),
@ -3365,12 +3362,11 @@ classifiers
likelihoods = HashMap.fromList [], n = 0}}),
("quarter (grain)",
Classifier{okData =
ClassData{prior = -0.4595323293784402, unseen = -2.639057329615259,
ClassData{prior = -0.6931471805599453, unseen = -2.639057329615259,
likelihoods = HashMap.fromList [("", 0.0)], n = 12},
koData =
ClassData{prior = -0.9985288301111273,
unseen = -2.1972245773362196,
likelihoods = HashMap.fromList [("", 0.0)], n = 7}}),
ClassData{prior = -0.6931471805599453, unseen = -2.639057329615259,
likelihoods = HashMap.fromList [("", 0.0)], n = 12}}),
("last <cycle> of <time>",
Classifier{okData =
ClassData{prior = -0.916290731874155, unseen = -3.1354942159291497,

View File

@ -515,6 +515,7 @@ allExamples = concat
, examples (datetime (2013, 2, 12, 15, 15, 0) Minute)
[ "at 15 past 3pm"
, "a quarter past 3pm"
, "for a quarter past 3pm"
, "3:15 in the afternoon"
, "15:15"
, "15h15"
@ -551,6 +552,7 @@ allExamples = concat
, examples (datetime (2013, 2, 12, 12, 15, 0) Minute)
[ "at 15 past noon"
, "a quarter past noon"
, "for a quarter past noon"
, "12:15 in the afternoon"
, "12:15"
, "12h15"
@ -574,15 +576,18 @@ allExamples = concat
]
, examples (datetime (2013, 2, 12, 13, 15, 0) Minute)
[ "a quarter past 1pm"
, "for a quarter past 1pm"
, "1:15pm"
, "13h15"
, "15 minutes from 1pm"
]
, examples (datetime (2013, 2, 12, 14, 15, 0) Minute)
[ "a quarter past 2pm"
, "for a quarter past 2pm"
]
, examples (datetime (2013, 2, 12, 20, 15, 0) Minute)
[ "a quarter past 8pm"
, "for a quarter past 8pm"
]
, examples (datetime (2013, 2, 12, 20, 0, 0) Hour)
[ "8 tonight"

View File

@ -782,7 +782,7 @@ ruleQuarterAfterHOD :: Rule
ruleQuarterAfterHOD = Rule
{ name = "quarter after|past <hour-of-day>"
, pattern =
[ regex "(a|one)? ?quarter (after|past)"
[ regex "(for )?((a|one) )?quarter (after|past)"
, Predicate isAnHourOfDay
]
, prod = \tokens -> case tokens of