mirror of
https://github.com/facebook/duckling.git
synced 2024-11-28 08:34:46 +03:00
Time/EN Support "Martin Luther Kings Day"
Summary: Expand regex to support "Martin Luther Kings Day" Reviewed By: patapizza Differential Revision: D9329681 fbshipit-source-id: 78d184f47daef582b21f5c9511b1972c762c27bc
This commit is contained in:
parent
af480b80f0
commit
179cec14fb
@ -164,8 +164,8 @@ classifiers
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("Martin Luther King's Day",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -2.3025850929940455,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 8},
|
||||
ClassData{prior = 0.0, unseen = -2.4849066497880004,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 10},
|
||||
koData =
|
||||
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
@ -2571,17 +2571,17 @@ classifiers
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("next <time>",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -3.332204510175204,
|
||||
ClassData{prior = 0.0, unseen = -3.4657359027997265,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("Martin Luther King's Day", -2.6026896854443837),
|
||||
("Halloween", -2.6026896854443837),
|
||||
("Wednesday", -2.6026896854443837),
|
||||
("Boss's Day", -2.6026896854443837),
|
||||
("Monday", -2.6026896854443837), ("day", -1.0986122886681098),
|
||||
("March", -2.6026896854443837), ("month", -2.6026896854443837),
|
||||
("Tuesday", -1.9095425048844386)],
|
||||
n = 9},
|
||||
[("Martin Luther King's Day", -2.0476928433652555),
|
||||
("Halloween", -2.740840023925201),
|
||||
("Wednesday", -2.740840023925201),
|
||||
("Boss's Day", -2.740840023925201),
|
||||
("Monday", -2.740840023925201), ("day", -1.0360919316867756),
|
||||
("March", -2.740840023925201), ("month", -2.740840023925201),
|
||||
("Tuesday", -2.0476928433652555)],
|
||||
n = 11},
|
||||
koData =
|
||||
ClassData{prior = -infinity, unseen = -2.3025850929940455,
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
|
@ -164,8 +164,8 @@ classifiers
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("Martin Luther King's Day",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -2.3025850929940455,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 8},
|
||||
ClassData{prior = 0.0, unseen = -2.4849066497880004,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 10},
|
||||
koData =
|
||||
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
@ -2571,17 +2571,17 @@ classifiers
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("next <time>",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -3.332204510175204,
|
||||
ClassData{prior = 0.0, unseen = -3.4657359027997265,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("Martin Luther King's Day", -2.6026896854443837),
|
||||
("Halloween", -2.6026896854443837),
|
||||
("Wednesday", -2.6026896854443837),
|
||||
("Boss's Day", -2.6026896854443837),
|
||||
("Monday", -2.6026896854443837), ("day", -1.0986122886681098),
|
||||
("March", -2.6026896854443837), ("month", -2.6026896854443837),
|
||||
("Tuesday", -1.9095425048844386)],
|
||||
n = 9},
|
||||
[("Martin Luther King's Day", -2.0476928433652555),
|
||||
("Halloween", -2.740840023925201),
|
||||
("Wednesday", -2.740840023925201),
|
||||
("Boss's Day", -2.740840023925201),
|
||||
("Monday", -2.740840023925201), ("day", -1.0360919316867756),
|
||||
("March", -2.740840023925201), ("month", -2.740840023925201),
|
||||
("Tuesday", -2.0476928433652555)],
|
||||
n = 11},
|
||||
koData =
|
||||
ClassData{prior = -infinity, unseen = -2.3025850929940455,
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
|
@ -170,8 +170,8 @@ classifiers
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("Martin Luther King's Day",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -2.3025850929940455,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 8},
|
||||
ClassData{prior = 0.0, unseen = -2.4849066497880004,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 10},
|
||||
koData =
|
||||
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
@ -2702,22 +2702,22 @@ classifiers
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("next <time>",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -3.6888794541139363,
|
||||
ClassData{prior = 0.0, unseen = -3.784189633918261,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("Martin Luther King's Day", -2.9704144655697013),
|
||||
("Halloween", -2.9704144655697013),
|
||||
("Wednesday", -2.9704144655697013),
|
||||
("Boss's Day", -2.9704144655697013),
|
||||
("Memorial Day", -2.9704144655697013),
|
||||
("Monday", -2.9704144655697013),
|
||||
("Discovery Day", -2.9704144655697013),
|
||||
("Mother's Day", -2.9704144655697013),
|
||||
("day", -1.0986122886681098),
|
||||
("Thanksgiving Day", -2.9704144655697013),
|
||||
("March", -2.9704144655697013), ("month", -2.9704144655697013),
|
||||
("Tuesday", -2.277267285009756)],
|
||||
n = 13},
|
||||
[("Martin Luther King's Day", -2.374905754573672),
|
||||
("Halloween", -3.068052935133617),
|
||||
("Wednesday", -3.068052935133617),
|
||||
("Boss's Day", -3.068052935133617),
|
||||
("Memorial Day", -3.068052935133617),
|
||||
("Monday", -3.068052935133617),
|
||||
("Discovery Day", -3.068052935133617),
|
||||
("Mother's Day", -3.068052935133617),
|
||||
("day", -1.0531499145913523),
|
||||
("Thanksgiving Day", -3.068052935133617),
|
||||
("March", -3.068052935133617), ("month", -3.068052935133617),
|
||||
("Tuesday", -2.374905754573672)],
|
||||
n = 15},
|
||||
koData =
|
||||
ClassData{prior = -infinity, unseen = -2.639057329615259,
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
|
@ -170,8 +170,8 @@ classifiers
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("Martin Luther King's Day",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -2.3025850929940455,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 8},
|
||||
ClassData{prior = 0.0, unseen = -2.4849066497880004,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 10},
|
||||
koData =
|
||||
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
@ -2635,19 +2635,19 @@ classifiers
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("next <time>",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -3.5263605246161616,
|
||||
ClassData{prior = 0.0, unseen = -3.6375861597263857,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("Martin Luther King's Day", -2.803360380906535),
|
||||
("Halloween", -2.803360380906535),
|
||||
("Wednesday", -2.803360380906535),
|
||||
("Boss's Day", -2.803360380906535),
|
||||
("Mothering Sunday", -2.803360380906535),
|
||||
("Monday", -2.803360380906535), ("day", -1.0986122886681098),
|
||||
("Thanksgiving Day", -2.803360380906535),
|
||||
("March", -2.803360380906535), ("month", -2.803360380906535),
|
||||
("Tuesday", -2.1102132003465894)],
|
||||
n = 11},
|
||||
[("Martin Luther King's Day", -2.2246235515243336),
|
||||
("Halloween", -2.917770732084279),
|
||||
("Wednesday", -2.917770732084279),
|
||||
("Boss's Day", -2.917770732084279),
|
||||
("Mothering Sunday", -2.917770732084279),
|
||||
("Monday", -2.917770732084279), ("day", -1.0459685551826876),
|
||||
("Thanksgiving Day", -2.917770732084279),
|
||||
("March", -2.917770732084279), ("month", -2.917770732084279),
|
||||
("Tuesday", -2.2246235515243336)],
|
||||
n = 13},
|
||||
koData =
|
||||
ClassData{prior = -infinity, unseen = -2.4849066497880004,
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
|
@ -164,8 +164,8 @@ classifiers
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("Martin Luther King's Day",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -2.3025850929940455,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 8},
|
||||
ClassData{prior = 0.0, unseen = -2.4849066497880004,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 10},
|
||||
koData =
|
||||
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
@ -2571,17 +2571,17 @@ classifiers
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("next <time>",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -3.332204510175204,
|
||||
ClassData{prior = 0.0, unseen = -3.4657359027997265,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("Martin Luther King's Day", -2.6026896854443837),
|
||||
("Halloween", -2.6026896854443837),
|
||||
("Wednesday", -2.6026896854443837),
|
||||
("Boss's Day", -2.6026896854443837),
|
||||
("Monday", -2.6026896854443837), ("day", -1.0986122886681098),
|
||||
("March", -2.6026896854443837), ("month", -2.6026896854443837),
|
||||
("Tuesday", -1.9095425048844386)],
|
||||
n = 9},
|
||||
[("Martin Luther King's Day", -2.0476928433652555),
|
||||
("Halloween", -2.740840023925201),
|
||||
("Wednesday", -2.740840023925201),
|
||||
("Boss's Day", -2.740840023925201),
|
||||
("Monday", -2.740840023925201), ("day", -1.0360919316867756),
|
||||
("March", -2.740840023925201), ("month", -2.740840023925201),
|
||||
("Tuesday", -2.0476928433652555)],
|
||||
n = 11},
|
||||
koData =
|
||||
ClassData{prior = -infinity, unseen = -2.3025850929940455,
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
|
@ -164,8 +164,8 @@ classifiers
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("Martin Luther King's Day",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -2.3025850929940455,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 8},
|
||||
ClassData{prior = 0.0, unseen = -2.4849066497880004,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 10},
|
||||
koData =
|
||||
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
@ -2571,17 +2571,17 @@ classifiers
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("next <time>",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -3.332204510175204,
|
||||
ClassData{prior = 0.0, unseen = -3.4657359027997265,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("Martin Luther King's Day", -2.6026896854443837),
|
||||
("Halloween", -2.6026896854443837),
|
||||
("Wednesday", -2.6026896854443837),
|
||||
("Boss's Day", -2.6026896854443837),
|
||||
("Monday", -2.6026896854443837), ("day", -1.0986122886681098),
|
||||
("March", -2.6026896854443837), ("month", -2.6026896854443837),
|
||||
("Tuesday", -1.9095425048844386)],
|
||||
n = 9},
|
||||
[("Martin Luther King's Day", -2.0476928433652555),
|
||||
("Halloween", -2.740840023925201),
|
||||
("Wednesday", -2.740840023925201),
|
||||
("Boss's Day", -2.740840023925201),
|
||||
("Monday", -2.740840023925201), ("day", -1.0360919316867756),
|
||||
("March", -2.740840023925201), ("month", -2.740840023925201),
|
||||
("Tuesday", -2.0476928433652555)],
|
||||
n = 11},
|
||||
koData =
|
||||
ClassData{prior = -infinity, unseen = -2.3025850929940455,
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
|
@ -164,8 +164,8 @@ classifiers
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("Martin Luther King's Day",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -2.3025850929940455,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 8},
|
||||
ClassData{prior = 0.0, unseen = -2.4849066497880004,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 10},
|
||||
koData =
|
||||
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
@ -2571,17 +2571,17 @@ classifiers
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("next <time>",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -3.332204510175204,
|
||||
ClassData{prior = 0.0, unseen = -3.4657359027997265,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("Martin Luther King's Day", -2.6026896854443837),
|
||||
("Halloween", -2.6026896854443837),
|
||||
("Wednesday", -2.6026896854443837),
|
||||
("Boss's Day", -2.6026896854443837),
|
||||
("Monday", -2.6026896854443837), ("day", -1.0986122886681098),
|
||||
("March", -2.6026896854443837), ("month", -2.6026896854443837),
|
||||
("Tuesday", -1.9095425048844386)],
|
||||
n = 9},
|
||||
[("Martin Luther King's Day", -2.0476928433652555),
|
||||
("Halloween", -2.740840023925201),
|
||||
("Wednesday", -2.740840023925201),
|
||||
("Boss's Day", -2.740840023925201),
|
||||
("Monday", -2.740840023925201), ("day", -1.0360919316867756),
|
||||
("March", -2.740840023925201), ("month", -2.740840023925201),
|
||||
("Tuesday", -2.0476928433652555)],
|
||||
n = 11},
|
||||
koData =
|
||||
ClassData{prior = -infinity, unseen = -2.3025850929940455,
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
|
@ -164,8 +164,8 @@ classifiers
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("Martin Luther King's Day",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -2.3025850929940455,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 8},
|
||||
ClassData{prior = 0.0, unseen = -2.4849066497880004,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 10},
|
||||
koData =
|
||||
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
@ -2571,17 +2571,17 @@ classifiers
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("next <time>",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -3.332204510175204,
|
||||
ClassData{prior = 0.0, unseen = -3.4657359027997265,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("Martin Luther King's Day", -2.6026896854443837),
|
||||
("Halloween", -2.6026896854443837),
|
||||
("Wednesday", -2.6026896854443837),
|
||||
("Boss's Day", -2.6026896854443837),
|
||||
("Monday", -2.6026896854443837), ("day", -1.0986122886681098),
|
||||
("March", -2.6026896854443837), ("month", -2.6026896854443837),
|
||||
("Tuesday", -1.9095425048844386)],
|
||||
n = 9},
|
||||
[("Martin Luther King's Day", -2.0476928433652555),
|
||||
("Halloween", -2.740840023925201),
|
||||
("Wednesday", -2.740840023925201),
|
||||
("Boss's Day", -2.740840023925201),
|
||||
("Monday", -2.740840023925201), ("day", -1.0360919316867756),
|
||||
("March", -2.740840023925201), ("month", -2.740840023925201),
|
||||
("Tuesday", -2.0476928433652555)],
|
||||
n = 11},
|
||||
koData =
|
||||
ClassData{prior = -infinity, unseen = -2.3025850929940455,
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
|
@ -164,8 +164,8 @@ classifiers
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("Martin Luther King's Day",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -2.3025850929940455,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 8},
|
||||
ClassData{prior = 0.0, unseen = -2.4849066497880004,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 10},
|
||||
koData =
|
||||
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
@ -2571,17 +2571,17 @@ classifiers
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("next <time>",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -3.332204510175204,
|
||||
ClassData{prior = 0.0, unseen = -3.4657359027997265,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("Martin Luther King's Day", -2.6026896854443837),
|
||||
("Halloween", -2.6026896854443837),
|
||||
("Wednesday", -2.6026896854443837),
|
||||
("Boss's Day", -2.6026896854443837),
|
||||
("Monday", -2.6026896854443837), ("day", -1.0986122886681098),
|
||||
("March", -2.6026896854443837), ("month", -2.6026896854443837),
|
||||
("Tuesday", -1.9095425048844386)],
|
||||
n = 9},
|
||||
[("Martin Luther King's Day", -2.0476928433652555),
|
||||
("Halloween", -2.740840023925201),
|
||||
("Wednesday", -2.740840023925201),
|
||||
("Boss's Day", -2.740840023925201),
|
||||
("Monday", -2.740840023925201), ("day", -1.0360919316867756),
|
||||
("March", -2.740840023925201), ("month", -2.740840023925201),
|
||||
("Tuesday", -2.0476928433652555)],
|
||||
n = 11},
|
||||
koData =
|
||||
ClassData{prior = -infinity, unseen = -2.3025850929940455,
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
|
@ -164,8 +164,8 @@ classifiers
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("Martin Luther King's Day",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -2.3025850929940455,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 8},
|
||||
ClassData{prior = 0.0, unseen = -2.4849066497880004,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 10},
|
||||
koData =
|
||||
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
@ -2571,17 +2571,17 @@ classifiers
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("next <time>",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -3.332204510175204,
|
||||
ClassData{prior = 0.0, unseen = -3.4657359027997265,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("Martin Luther King's Day", -2.6026896854443837),
|
||||
("Halloween", -2.6026896854443837),
|
||||
("Wednesday", -2.6026896854443837),
|
||||
("Boss's Day", -2.6026896854443837),
|
||||
("Monday", -2.6026896854443837), ("day", -1.0986122886681098),
|
||||
("March", -2.6026896854443837), ("month", -2.6026896854443837),
|
||||
("Tuesday", -1.9095425048844386)],
|
||||
n = 9},
|
||||
[("Martin Luther King's Day", -2.0476928433652555),
|
||||
("Halloween", -2.740840023925201),
|
||||
("Wednesday", -2.740840023925201),
|
||||
("Boss's Day", -2.740840023925201),
|
||||
("Monday", -2.740840023925201), ("day", -1.0360919316867756),
|
||||
("March", -2.740840023925201), ("month", -2.740840023925201),
|
||||
("Tuesday", -2.0476928433652555)],
|
||||
n = 11},
|
||||
koData =
|
||||
ClassData{prior = -infinity, unseen = -2.3025850929940455,
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
|
@ -177,8 +177,8 @@ classifiers
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("Martin Luther King's Day",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -2.3025850929940455,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 8},
|
||||
ClassData{prior = 0.0, unseen = -2.4849066497880004,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 10},
|
||||
koData =
|
||||
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
@ -2760,22 +2760,21 @@ classifiers
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("next <time>",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -3.6888794541139363,
|
||||
ClassData{prior = 0.0, unseen = -3.784189633918261,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("Martin Luther King's Day", -2.9704144655697013),
|
||||
("Halloween", -2.9704144655697013),
|
||||
("Wednesday", -2.9704144655697013),
|
||||
("Boss's Day", -2.9704144655697013),
|
||||
("Memorial Day", -2.9704144655697013),
|
||||
("Monday", -2.9704144655697013),
|
||||
("Tax Day", -2.9704144655697013),
|
||||
("Mother's Day", -2.9704144655697013),
|
||||
("day", -1.0986122886681098),
|
||||
("Thanksgiving Day", -2.9704144655697013),
|
||||
("March", -2.9704144655697013), ("month", -2.9704144655697013),
|
||||
("Tuesday", -2.277267285009756)],
|
||||
n = 13},
|
||||
[("Martin Luther King's Day", -2.374905754573672),
|
||||
("Halloween", -3.068052935133617),
|
||||
("Wednesday", -3.068052935133617),
|
||||
("Boss's Day", -3.068052935133617),
|
||||
("Memorial Day", -3.068052935133617),
|
||||
("Monday", -3.068052935133617), ("Tax Day", -3.068052935133617),
|
||||
("Mother's Day", -3.068052935133617),
|
||||
("day", -1.0531499145913523),
|
||||
("Thanksgiving Day", -3.068052935133617),
|
||||
("March", -3.068052935133617), ("month", -3.068052935133617),
|
||||
("Tuesday", -2.374905754573672)],
|
||||
n = 15},
|
||||
koData =
|
||||
ClassData{prior = -infinity, unseen = -2.639057329615259,
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
|
@ -163,8 +163,8 @@ classifiers
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("Martin Luther King's Day",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -2.3025850929940455,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 8},
|
||||
ClassData{prior = 0.0, unseen = -2.4849066497880004,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 10},
|
||||
koData =
|
||||
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
@ -2618,18 +2618,18 @@ classifiers
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("next <time>",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -3.4339872044851463,
|
||||
ClassData{prior = 0.0, unseen = -3.5553480614894135,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("Martin Luther King's Day", -2.70805020110221),
|
||||
("Halloween", -2.70805020110221),
|
||||
("Wednesday", -2.70805020110221),
|
||||
("Boss's Day", -2.70805020110221),
|
||||
("Monday", -2.70805020110221), ("day", -1.0986122886681098),
|
||||
("Thanksgiving Day", -2.70805020110221),
|
||||
("March", -2.70805020110221), ("month", -2.70805020110221),
|
||||
("Tuesday", -2.0149030205422647)],
|
||||
n = 10},
|
||||
[("Martin Luther King's Day", -2.1400661634962708),
|
||||
("Halloween", -2.833213344056216),
|
||||
("Wednesday", -2.833213344056216),
|
||||
("Boss's Day", -2.833213344056216),
|
||||
("Monday", -2.833213344056216), ("day", -1.041453874828161),
|
||||
("Thanksgiving Day", -2.833213344056216),
|
||||
("March", -2.833213344056216), ("month", -2.833213344056216),
|
||||
("Tuesday", -2.1400661634962708)],
|
||||
n = 12},
|
||||
koData =
|
||||
ClassData{prior = -infinity, unseen = -2.3978952727983707,
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
|
@ -164,8 +164,8 @@ classifiers
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("Martin Luther King's Day",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -2.3025850929940455,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 8},
|
||||
ClassData{prior = 0.0, unseen = -2.4849066497880004,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 10},
|
||||
koData =
|
||||
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
@ -2571,17 +2571,17 @@ classifiers
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("next <time>",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -3.332204510175204,
|
||||
ClassData{prior = 0.0, unseen = -3.4657359027997265,
|
||||
likelihoods =
|
||||
HashMap.fromList
|
||||
[("Martin Luther King's Day", -2.6026896854443837),
|
||||
("Halloween", -2.6026896854443837),
|
||||
("Wednesday", -2.6026896854443837),
|
||||
("Boss's Day", -2.6026896854443837),
|
||||
("Monday", -2.6026896854443837), ("day", -1.0986122886681098),
|
||||
("March", -2.6026896854443837), ("month", -2.6026896854443837),
|
||||
("Tuesday", -1.9095425048844386)],
|
||||
n = 9},
|
||||
[("Martin Luther King's Day", -2.0476928433652555),
|
||||
("Halloween", -2.740840023925201),
|
||||
("Wednesday", -2.740840023925201),
|
||||
("Boss's Day", -2.740840023925201),
|
||||
("Monday", -2.740840023925201), ("day", -1.0360919316867756),
|
||||
("March", -2.740840023925201), ("month", -2.740840023925201),
|
||||
("Tuesday", -2.0476928433652555)],
|
||||
n = 11},
|
||||
koData =
|
||||
ClassData{prior = -infinity, unseen = -2.3025850929940455,
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
|
@ -108,6 +108,7 @@ negativeCorpus = (testContext, testOptions, examples)
|
||||
, "4a."
|
||||
, "A4 A5"
|
||||
, "palm"
|
||||
, "Martin Luther King' day"
|
||||
]
|
||||
|
||||
latentCorpus :: Corpus
|
||||
@ -761,6 +762,8 @@ allExamples = concat
|
||||
, examples (datetimeHoliday (2014, 1, 20, 0, 0, 0) Day "Martin Luther King's Day")
|
||||
[ "MLK day"
|
||||
, "next Martin Luther King day"
|
||||
, "next Martin Luther King's day"
|
||||
, "next Martin Luther Kings day"
|
||||
, "this MLK day"
|
||||
]
|
||||
, examples (datetimeHoliday (2013, 1, 21, 0, 0, 0) Day "Martin Luther King's Day")
|
||||
|
@ -1653,7 +1653,7 @@ rulePeriodicHolidays = mkRuleHolidays
|
||||
, ( "International Day of Cooperatives"
|
||||
, "international day of co\\-?operatives", nthDOWOfMonth 1 6 7 )
|
||||
, ( "Martin Luther King's Day"
|
||||
, "(MLK|Martin Luther King,?)( Jr\\.?| Junior)? day|(civil|idaho human) rights day"
|
||||
, "(MLK|Martin Luther King('?s)?,?)( Jr\\.?| Junior)? day|(civil|idaho human) rights day"
|
||||
, nthDOWOfMonth 3 1 1
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user