mirror of
https://github.com/facebook/duckling.git
synced 2025-01-07 14:29:37 +03:00
Time/EN_CA, EN_US: Add "Groundhogs day" in regex for "Groundhog Day"
Summary: Modify regex to add "Groundhogs day" in regex for "Groundhog Day" in US and CA Reviewed By: patapizza Differential Revision: D7605031 fbshipit-source-id: 0cbb45d4edde3345437872f2e5b366c39f6a8b54
This commit is contained in:
parent
de977fe5cc
commit
17e1845e12
@ -1530,6 +1530,13 @@ classifiers
|
||||
koData =
|
||||
ClassData{prior = -infinity, unseen = -1.0986122886681098,
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("Groundhog Day",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -1.3862943611198906,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 2},
|
||||
koData =
|
||||
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("this|last|next <cycle>",
|
||||
Classifier{okData =
|
||||
ClassData{prior = -7.503518594291408e-2,
|
||||
|
@ -1521,6 +1521,13 @@ classifiers
|
||||
koData =
|
||||
ClassData{prior = -infinity, unseen = -1.0986122886681098,
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("Groundhog Day",
|
||||
Classifier{okData =
|
||||
ClassData{prior = 0.0, unseen = -1.3862943611198906,
|
||||
likelihoods = HashMap.fromList [("", 0.0)], n = 2},
|
||||
koData =
|
||||
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
||||
likelihoods = HashMap.fromList [], n = 0}}),
|
||||
("this|last|next <cycle>",
|
||||
Classifier{okData =
|
||||
ClassData{prior = -7.410797215372185e-2,
|
||||
|
@ -139,4 +139,8 @@ allExamples = concat
|
||||
, examples (datetimeIntervalHoliday ((2013, 8, 30, 18, 0, 0), (2013, 9, 3, 0, 0, 0)) Hour "Labour Day weekend")
|
||||
[ "labor day weekend"
|
||||
]
|
||||
, examples (datetimeHoliday (2013, 2, 2, 0, 0, 0) Day "Groundhog Day")
|
||||
[ "Groundhog day"
|
||||
, "groundhogs day"
|
||||
]
|
||||
]
|
||||
|
@ -76,7 +76,7 @@ rulePeriodicHolidays = mkRuleHolidays
|
||||
-- Fixed dates, year over year
|
||||
[ ( "Anniversary of the Statute of Westminster", "anniversary of the statute of westminster", monthDay 12 11 )
|
||||
, ( "Memorial Day", "(canada|dominion|memorial) day", monthDay 7 1 )
|
||||
, ( "Groundhog Day", "groundhog day", monthDay 2 2 )
|
||||
, ( "Groundhog Day", "groundhogs? day", monthDay 2 2 )
|
||||
, ( "Healthcare Aide Day", "healthcare aide day", monthDay 10 18 )
|
||||
, ( "National Aboriginal Day", "national aboriginal day", monthDay 6 21 )
|
||||
, ( "National Flag of Canada Day", "national flag of canada day", monthDay 2 15 )
|
||||
|
@ -137,4 +137,8 @@ allExamples = concat
|
||||
, examples (datetimeIntervalHoliday ((2013, 8, 30, 18, 0, 0), (2013, 9, 3, 0, 0, 0)) Hour "Labor Day weekend")
|
||||
[ "labor day weekend"
|
||||
]
|
||||
, examples (datetimeHoliday (2013, 2, 2, 0, 0, 0) Day "Groundhog Day")
|
||||
[ "Groundhog day"
|
||||
, "groundhogs day"
|
||||
]
|
||||
]
|
||||
|
@ -103,7 +103,7 @@ rulePeriodicHolidays = mkRuleHolidays
|
||||
, ( "Father Damien Day", "father damien day", monthDay 4 15 )
|
||||
, ( "Feast of Our Lady of Guadalupe", "feast of our lady of guadalupe", monthDay 12 12 )
|
||||
, ( "Flag Day", "flag day", monthDay 6 14 )
|
||||
, ( "Groundhog Day", "groundhog day", monthDay 2 2 )
|
||||
, ( "Groundhog Day", "groundhogs? day", monthDay 2 2 )
|
||||
, ( "Harvey Milk Day", "harvey milk day", monthDay 5 22 )
|
||||
, ( "Inauguration Day", "inauguration day", monthDay 1 20 )
|
||||
, ( "Independence Day", "independence day", monthDay 7 4 )
|
||||
|
Loading…
Reference in New Issue
Block a user