mirror of
https://github.com/facebook/duckling.git
synced 2024-11-28 16:54:59 +03:00
3f8e52e70a
fbshipit-source-id: 301a10f448e9623aa1c953544f42de562909e192
753 lines
43 KiB
Haskell
753 lines
43 KiB
Haskell
-- Copyright (c) 2016-present, Facebook, Inc.
|
|
-- All rights reserved.
|
|
--
|
|
-- This source code is licensed under the BSD-style license found in the
|
|
-- LICENSE file in the root directory of this source tree. An additional grant
|
|
-- of patent rights can be found in the PATENTS file in the same directory.
|
|
|
|
-----------------------------------------------------------------
|
|
-- Auto-generated by regenClassifiers
|
|
--
|
|
-- DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
-- @generated
|
|
-----------------------------------------------------------------
|
|
{-# LANGUAGE OverloadedStrings #-}
|
|
module Duckling.Ranking.Classifiers.ZH (classifiers) where
|
|
import Prelude
|
|
import Duckling.Ranking.Types
|
|
import qualified Data.HashMap.Strict as HashMap
|
|
import Data.String
|
|
|
|
classifiers :: Classifiers
|
|
classifiers
|
|
= HashMap.fromList
|
|
[("<time> timezone",
|
|
Classifier{okData =
|
|
ClassData{prior = 0.0, unseen = -1.6094379124341003,
|
|
likelihoods =
|
|
HashMap.fromList
|
|
[("<time-of-day> am|pm", -0.6931471805599453),
|
|
("hour", -0.6931471805599453)],
|
|
n = 1},
|
|
koData =
|
|
ClassData{prior = -infinity, unseen = -1.0986122886681098,
|
|
likelihoods = HashMap.fromList [], n = 0}}),
|
|
("integer (numeric)",
|
|
Classifier{okData =
|
|
ClassData{prior = -0.5292593254548287,
|
|
unseen = -3.8066624897703196,
|
|
likelihoods = HashMap.fromList [("", 0.0)], n = 43},
|
|
koData =
|
|
ClassData{prior = -0.8892620594862358,
|
|
unseen = -3.4657359027997265,
|
|
likelihoods = HashMap.fromList [("", 0.0)], n = 30}}),
|
|
("the day before yesterday",
|
|
Classifier{okData =
|
|
ClassData{prior = 0.0, unseen = -1.0986122886681098,
|
|
likelihoods = HashMap.fromList [("", 0.0)], n = 1},
|
|
koData =
|
|
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
|
likelihoods = HashMap.fromList [], n = 0}}),
|
|
("today",
|
|
Classifier{okData =
|
|
ClassData{prior = 0.0, unseen = -1.0986122886681098,
|
|
likelihoods = HashMap.fromList [("", 0.0)], n = 1},
|
|
koData =
|
|
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
|
likelihoods = HashMap.fromList [], n = 0}}),
|
|
("mm/dd",
|
|
Classifier{okData =
|
|
ClassData{prior = -1.6094379124341003,
|
|
unseen = -1.0986122886681098,
|
|
likelihoods = HashMap.fromList [("", 0.0)], n = 1},
|
|
koData =
|
|
ClassData{prior = -0.2231435513142097, unseen = -1.791759469228055,
|
|
likelihoods = HashMap.fromList [("", 0.0)], n = 4}}),
|
|
("absorption of , after named day",
|
|
Classifier{okData =
|
|
ClassData{prior = 0.0, unseen = -2.70805020110221,
|
|
likelihoods =
|
|
HashMap.fromList
|
|
[("day", -0.6931471805599453),
|
|
("named-day", -0.6931471805599453)],
|
|
n = 6},
|
|
koData =
|
|
ClassData{prior = -infinity, unseen = -1.0986122886681098,
|
|
likelihoods = HashMap.fromList [], n = 0}}),
|
|
("tonight",
|
|
Classifier{okData =
|
|
ClassData{prior = 0.0, unseen = -1.791759469228055,
|
|
likelihoods = HashMap.fromList [("", 0.0)], n = 4},
|
|
koData =
|
|
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
|
likelihoods = HashMap.fromList [], n = 0}}),
|
|
("month (grain)",
|
|
Classifier{okData =
|
|
ClassData{prior = -1.0296194171811581,
|
|
unseen = -3.0910424533583156,
|
|
likelihoods = HashMap.fromList [("", 0.0)], n = 20},
|
|
koData =
|
|
ClassData{prior = -0.4418327522790392,
|
|
unseen = -3.6375861597263857,
|
|
likelihoods = HashMap.fromList [("", 0.0)], n = 36}}),
|
|
("<time-of-day> o'clock",
|
|
Classifier{okData =
|
|
ClassData{prior = -0.5108256237659907, unseen = -2.70805020110221,
|
|
likelihoods =
|
|
HashMap.fromList
|
|
[("<integer> (latent time-of-day)", -0.6931471805599453),
|
|
("hour", -0.6931471805599453)],
|
|
n = 6},
|
|
koData =
|
|
ClassData{prior = -0.916290731874155, unseen = -2.3978952727983707,
|
|
likelihoods =
|
|
HashMap.fromList
|
|
[("<integer> (latent time-of-day)", -0.6931471805599453),
|
|
("hour", -0.6931471805599453)],
|
|
n = 4}}),
|
|
("national day",
|
|
Classifier{okData =
|
|
ClassData{prior = 0.0, unseen = -2.0794415416798357,
|
|
likelihoods = HashMap.fromList [("", 0.0)], n = 6},
|
|
koData =
|
|
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
|
likelihoods = HashMap.fromList [], n = 0}}),
|
|
("hour (grain)",
|
|
Classifier{okData =
|
|
ClassData{prior = 0.0, unseen = -2.639057329615259,
|
|
likelihoods = HashMap.fromList [("", 0.0)], n = 12},
|
|
koData =
|
|
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
|
likelihoods = HashMap.fromList [], n = 0}}),
|
|
("intersect",
|
|
Classifier{okData =
|
|
ClassData{prior = -0.4473122180436648, unseen = -4.553876891600541,
|
|
likelihoods =
|
|
HashMap.fromList
|
|
[("children's day<part-of-day> <dim time>", -3.4446824936018943),
|
|
("year (numeric with year symbol)<named-month> <day-of-month>",
|
|
-1.547562508716013),
|
|
("dayday", -1.978345424808467),
|
|
("hourhour", -2.9338568698359033),
|
|
("hourminute", -3.4446824936018943),
|
|
("absorption of , after named day<named-month> <day-of-month>",
|
|
-1.978345424808467),
|
|
("dayminute", -3.4446824936018943),
|
|
("tonight<time-of-day> o'clock", -2.9338568698359033),
|
|
("<dim time> <part-of-day>relative minutes after|past <integer> (hour-of-day)",
|
|
-3.4446824936018943),
|
|
("yearday", -1.547562508716013)],
|
|
n = 39},
|
|
koData =
|
|
ClassData{prior = -1.0198314108149953, unseen = -4.110873864173311,
|
|
likelihoods =
|
|
HashMap.fromList
|
|
[("children's day<part-of-day> <dim time>", -2.1484344131667874),
|
|
("dayhour", -2.4849066497880004),
|
|
("daymonth", -2.1484344131667874),
|
|
("<dim time> <part-of-day><time-of-day> o'clock",
|
|
-2.995732273553991),
|
|
("year (numeric with year symbol)named-month",
|
|
-2.1484344131667874),
|
|
("hourhour", -2.995732273553991),
|
|
("hourminute", -2.995732273553991),
|
|
("absorption of , after named daynamed-month",
|
|
-2.1484344131667874),
|
|
("yearmonth", -2.1484344131667874),
|
|
("dayminute", -2.995732273553991),
|
|
("<dim time> <part-of-day>relative minutes after|past <integer> (hour-of-day)",
|
|
-2.995732273553991)],
|
|
n = 22}}),
|
|
("year (grain)",
|
|
Classifier{okData =
|
|
ClassData{prior = -1.2809338454620642,
|
|
unseen = -1.9459101490553135,
|
|
likelihoods = HashMap.fromList [("", 0.0)], n = 5},
|
|
koData =
|
|
ClassData{prior = -0.325422400434628, unseen = -2.70805020110221,
|
|
likelihoods = HashMap.fromList [("", 0.0)], n = 13}}),
|
|
("last tuesday, last july",
|
|
Classifier{okData =
|
|
ClassData{prior = -1.3350010667323402, unseen = -3.332204510175204,
|
|
likelihoods =
|
|
HashMap.fromList
|
|
[("day", -0.8979415932059586),
|
|
("named-day", -0.8979415932059586)],
|
|
n = 10},
|
|
koData =
|
|
ClassData{prior = -0.3053816495511819,
|
|
unseen = -4.1588830833596715,
|
|
likelihoods =
|
|
HashMap.fromList
|
|
[("<integer> (latent time-of-day)", -1.0076405104623831),
|
|
("named-month", -3.4499875458315876),
|
|
("month (numeric with month symbol)", -2.3513752571634776),
|
|
("hour", -1.0076405104623831), ("month", -2.1972245773362196)],
|
|
n = 28}}),
|
|
("next <cycle>",
|
|
Classifier{okData =
|
|
ClassData{prior = -0.7884573603642702, unseen = -2.70805020110221,
|
|
likelihoods =
|
|
HashMap.fromList
|
|
[("week", -1.540445040947149),
|
|
("month (grain)", -1.252762968495368),
|
|
("week (grain)", -1.540445040947149),
|
|
("month", -1.252762968495368)],
|
|
n = 5},
|
|
koData =
|
|
ClassData{prior = -0.6061358035703156, unseen = -2.833213344056216,
|
|
likelihoods =
|
|
HashMap.fromList
|
|
[("week", -0.8266785731844679),
|
|
("week (grain)", -0.8266785731844679)],
|
|
n = 6}}),
|
|
("last year",
|
|
Classifier{okData =
|
|
ClassData{prior = 0.0, unseen = -1.0986122886681098,
|
|
likelihoods = HashMap.fromList [("", 0.0)], n = 1},
|
|
koData =
|
|
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
|
likelihoods = HashMap.fromList [], n = 0}}),
|
|
("this <day-of-week>",
|
|
Classifier{okData =
|
|
ClassData{prior = 0.0, unseen = -3.295836866004329,
|
|
likelihoods =
|
|
HashMap.fromList
|
|
[("day", -0.6931471805599453),
|
|
("named-day", -0.6931471805599453)],
|
|
n = 12},
|
|
koData =
|
|
ClassData{prior = -infinity, unseen = -1.0986122886681098,
|
|
likelihoods = HashMap.fromList [], n = 0}}),
|
|
("yyyy-mm-dd",
|
|
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}}),
|
|
("mm/dd/yyyy",
|
|
Classifier{okData =
|
|
ClassData{prior = 0.0, unseen = -1.791759469228055,
|
|
likelihoods = HashMap.fromList [("", 0.0)], n = 4},
|
|
koData =
|
|
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
|
likelihoods = HashMap.fromList [], n = 0}}),
|
|
("evening|night",
|
|
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}}),
|
|
("yesterday",
|
|
Classifier{okData =
|
|
ClassData{prior = 0.0, unseen = -1.0986122886681098,
|
|
likelihoods = HashMap.fromList [("", 0.0)], n = 1},
|
|
koData =
|
|
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
|
likelihoods = HashMap.fromList [], n = 0}}),
|
|
("next year",
|
|
Classifier{okData =
|
|
ClassData{prior = 0.0, unseen = -1.0986122886681098,
|
|
likelihoods = HashMap.fromList [("", 0.0)], n = 1},
|
|
koData =
|
|
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
|
likelihoods = HashMap.fromList [], n = 0}}),
|
|
("hh:mm (time-of-day)",
|
|
Classifier{okData =
|
|
ClassData{prior = 0.0, unseen = -1.9459101490553135,
|
|
likelihoods = HashMap.fromList [("", 0.0)], n = 5},
|
|
koData =
|
|
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
|
likelihoods = HashMap.fromList [], n = 0}}),
|
|
("<integer> (latent time-of-day)",
|
|
Classifier{okData =
|
|
ClassData{prior = -1.540445040947149, unseen = -2.70805020110221,
|
|
likelihoods =
|
|
HashMap.fromList
|
|
[("integer (numeric)", -1.0296194171811581),
|
|
("integer (0..10)", -0.4418327522790392)],
|
|
n = 12},
|
|
koData =
|
|
ClassData{prior = -0.2411620568168881,
|
|
unseen = -3.8501476017100584,
|
|
likelihoods =
|
|
HashMap.fromList
|
|
[("integer (numeric)", -2.2192034840549946),
|
|
("integer (0..10)", -0.11506932978478723)],
|
|
n = 44}}),
|
|
("nth <time> of <time>",
|
|
Classifier{okData =
|
|
ClassData{prior = 0.0, unseen = -2.4849066497880004,
|
|
likelihoods =
|
|
HashMap.fromList
|
|
[("monthday", -0.7884573603642702),
|
|
("month (numeric with month symbol)ordinal (digits)named-day",
|
|
-1.2992829841302609),
|
|
("named-monthordinal (digits)named-day", -1.2992829841302609)],
|
|
n = 4},
|
|
koData =
|
|
ClassData{prior = -infinity, unseen = -1.3862943611198906,
|
|
likelihoods = HashMap.fromList [], n = 0}}),
|
|
("named-month",
|
|
Classifier{okData =
|
|
ClassData{prior = -4.255961441879589e-2,
|
|
unseen = -3.2188758248682006,
|
|
likelihoods = HashMap.fromList [("", 0.0)], n = 23},
|
|
koData =
|
|
ClassData{prior = -3.1780538303479458,
|
|
unseen = -1.0986122886681098,
|
|
likelihoods = HashMap.fromList [("", 0.0)], n = 1}}),
|
|
("month (numeric with month symbol)",
|
|
Classifier{okData =
|
|
ClassData{prior = -0.15415067982725836,
|
|
unseen = -3.6635616461296463,
|
|
likelihoods =
|
|
HashMap.fromList
|
|
[("integer (numeric)", -0.9985288301111273),
|
|
("integer (0..10)", -0.4595323293784402)],
|
|
n = 36},
|
|
koData =
|
|
ClassData{prior = -1.9459101490553135,
|
|
unseen = -2.1972245773362196,
|
|
likelihoods =
|
|
HashMap.fromList [("integer (0..10)", -0.13353139262452263)],
|
|
n = 6}}),
|
|
("week (grain)",
|
|
Classifier{okData =
|
|
ClassData{prior = -0.8754687373538999,
|
|
unseen = -3.0910424533583156,
|
|
likelihoods = HashMap.fromList [("", 0.0)], n = 20},
|
|
koData =
|
|
ClassData{prior = -0.5389965007326869,
|
|
unseen = -3.4011973816621555,
|
|
likelihoods = HashMap.fromList [("", 0.0)], n = 28}}),
|
|
("valentine's 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}}),
|
|
("year (numeric with year symbol)",
|
|
Classifier{okData =
|
|
ClassData{prior = 0.0, unseen = -2.70805020110221,
|
|
likelihoods = HashMap.fromList [("integer (numeric)", 0.0)],
|
|
n = 13},
|
|
koData =
|
|
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
|
likelihoods = HashMap.fromList [], n = 0}}),
|
|
("now",
|
|
Classifier{okData =
|
|
ClassData{prior = 0.0, unseen = -2.1972245773362196,
|
|
likelihoods = HashMap.fromList [("", 0.0)], n = 7},
|
|
koData =
|
|
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
|
likelihoods = HashMap.fromList [], n = 0}}),
|
|
("numbers prefix with -, negative or minus",
|
|
Classifier{okData =
|
|
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
|
likelihoods = HashMap.fromList [], n = 0},
|
|
koData =
|
|
ClassData{prior = 0.0, unseen = -1.791759469228055,
|
|
likelihoods = HashMap.fromList [("integer (numeric)", 0.0)],
|
|
n = 4}}),
|
|
("tomorrow",
|
|
Classifier{okData =
|
|
ClassData{prior = 0.0, unseen = -1.0986122886681098,
|
|
likelihoods = HashMap.fromList [("", 0.0)], n = 1},
|
|
koData =
|
|
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
|
likelihoods = HashMap.fromList [], n = 0}}),
|
|
("this year",
|
|
Classifier{okData =
|
|
ClassData{prior = 0.0, unseen = -1.0986122886681098,
|
|
likelihoods = HashMap.fromList [("", 0.0)], n = 1},
|
|
koData =
|
|
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
|
likelihoods = HashMap.fromList [], n = 0}}),
|
|
("afternoon",
|
|
Classifier{okData =
|
|
ClassData{prior = 0.0, unseen = -1.9459101490553135,
|
|
likelihoods = HashMap.fromList [("", 0.0)], n = 5},
|
|
koData =
|
|
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
|
likelihoods = HashMap.fromList [], n = 0}}),
|
|
("this <cycle>",
|
|
Classifier{okData =
|
|
ClassData{prior = -0.8754687373538999,
|
|
unseen = -3.2188758248682006,
|
|
likelihoods =
|
|
HashMap.fromList
|
|
[("week", -0.9808292530117262),
|
|
("year (grain)", -2.0794415416798357),
|
|
("week (grain)", -0.9808292530117262),
|
|
("year", -2.0794415416798357)],
|
|
n = 10},
|
|
koData =
|
|
ClassData{prior = -0.5389965007326869,
|
|
unseen = -3.4965075614664802,
|
|
likelihoods =
|
|
HashMap.fromList
|
|
[("week", -0.7576857016975165),
|
|
("week (grain)", -0.7576857016975165)],
|
|
n = 14}}),
|
|
("minute (grain)",
|
|
Classifier{okData =
|
|
ClassData{prior = 0.0, unseen = -2.639057329615259,
|
|
likelihoods = HashMap.fromList [("", 0.0)], n = 12},
|
|
koData =
|
|
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
|
likelihoods = HashMap.fromList [], n = 0}}),
|
|
("<dim time> <part-of-day>",
|
|
Classifier{okData =
|
|
ClassData{prior = 0.0, unseen = -3.9889840465642745,
|
|
likelihoods =
|
|
HashMap.fromList
|
|
[("dayhour", -0.7514160886839211),
|
|
("national dayevening|night", -2.871679624884012),
|
|
("<named-month> <day-of-month>morning", -1.405342556090585),
|
|
("named-daymorning", -1.7730673362159024),
|
|
("children's dayafternoon", -2.871679624884012)],
|
|
n = 24},
|
|
koData =
|
|
ClassData{prior = -infinity, unseen = -1.791759469228055,
|
|
likelihoods = HashMap.fromList [], n = 0}}),
|
|
("<part-of-day> <dim time>",
|
|
Classifier{okData =
|
|
ClassData{prior = -0.6931471805599453,
|
|
unseen = -3.5553480614894135,
|
|
likelihoods =
|
|
HashMap.fromList
|
|
[("tonight<integer> (latent time-of-day)", -1.916922612182061),
|
|
("hourhour", -1.329135947279942),
|
|
("afternoonrelative minutes after|past <integer> (hour-of-day)",
|
|
-1.916922612182061),
|
|
("hourminute", -1.7346010553881064),
|
|
("afternoonhh:mm (time-of-day)", -2.833213344056216),
|
|
("tonight<time-of-day> o'clock", -1.916922612182061)],
|
|
n = 13},
|
|
koData =
|
|
ClassData{prior = -0.6931471805599453,
|
|
unseen = -3.5553480614894135,
|
|
likelihoods =
|
|
HashMap.fromList
|
|
[("hourhour", -1.2237754316221157),
|
|
("afternoonrelative minutes after|past <integer> (hour-of-day)",
|
|
-1.916922612182061),
|
|
("afternoon<time-of-day> o'clock", -1.916922612182061),
|
|
("hourminute", -1.916922612182061),
|
|
("afternoon<integer> (latent time-of-day)",
|
|
-1.7346010553881064)],
|
|
n = 13}}),
|
|
("<integer> <unit-of-duration>",
|
|
Classifier{okData =
|
|
ClassData{prior = -infinity, unseen = -2.833213344056216,
|
|
likelihoods = HashMap.fromList [], n = 0},
|
|
koData =
|
|
ClassData{prior = 0.0, unseen = -5.54907608489522,
|
|
likelihoods =
|
|
HashMap.fromList
|
|
[("week", -2.9802280870180256),
|
|
("integer (0..10)month (grain)", -1.9075912847531766),
|
|
("integer (0..10)hour (grain)", -2.9802280870180256),
|
|
("second", -3.242592351485517),
|
|
("integer (0..10)day (grain)", -3.4657359027997265),
|
|
("integer (0..10)year (grain)", -3.7534179752515073),
|
|
("integer (numeric)year (grain)", -2.906120114864304),
|
|
("integer (0..10)second (grain)", -3.242592351485517),
|
|
("day", -3.4657359027997265), ("year", -2.600738465313122),
|
|
("integer (0..10)minute (grain)", -2.9802280870180256),
|
|
("hour", -2.9802280870180256),
|
|
("integer (0..10)week (grain)", -2.9802280870180256),
|
|
("month", -1.6133518117552368),
|
|
("integer (numeric)month (grain)", -2.906120114864304),
|
|
("minute", -2.9802280870180256)],
|
|
n = 120}}),
|
|
("integer (11..19)",
|
|
Classifier{okData =
|
|
ClassData{prior = 0.0, unseen = -2.639057329615259,
|
|
likelihoods = HashMap.fromList [("integer (0..10)", 0.0)], n = 12},
|
|
koData =
|
|
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
|
likelihoods = HashMap.fromList [], n = 0}}),
|
|
("<time-of-day> am|pm",
|
|
Classifier{okData =
|
|
ClassData{prior = -0.4700036292457356, unseen = -2.70805020110221,
|
|
likelihoods =
|
|
HashMap.fromList
|
|
[("hh:mm (time-of-day)", -1.252762968495368),
|
|
("<integer> (latent time-of-day)", -1.540445040947149),
|
|
("hour", -1.540445040947149), ("minute", -1.252762968495368)],
|
|
n = 5},
|
|
koData =
|
|
ClassData{prior = -0.9808292530117262,
|
|
unseen = -2.3978952727983707,
|
|
likelihoods =
|
|
HashMap.fromList
|
|
[("<integer> (latent time-of-day)", -0.916290731874155),
|
|
("hour", -0.916290731874155)],
|
|
n = 3}}),
|
|
("relative minutes after|past <integer> (hour-of-day)",
|
|
Classifier{okData =
|
|
ClassData{prior = -0.6931471805599453,
|
|
unseen = -2.4849066497880004,
|
|
likelihoods =
|
|
HashMap.fromList
|
|
[("<integer> (latent time-of-day)integer (11..19)",
|
|
-0.7884573603642702),
|
|
("hour", -0.7884573603642702)],
|
|
n = 4},
|
|
koData =
|
|
ClassData{prior = -0.6931471805599453,
|
|
unseen = -2.4849066497880004,
|
|
likelihoods =
|
|
HashMap.fromList
|
|
[("<integer> (latent time-of-day)integer (0..10)",
|
|
-0.7884573603642702),
|
|
("hour", -0.7884573603642702)],
|
|
n = 4}}),
|
|
("army's 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}}),
|
|
("intersect by \",\"",
|
|
Classifier{okData =
|
|
ClassData{prior = -0.40546510810816444,
|
|
unseen = -3.367295829986474,
|
|
likelihoods =
|
|
HashMap.fromList
|
|
[("dayday", -0.7672551527136672),
|
|
("named-day<named-month> <day-of-month>", -0.7672551527136672)],
|
|
n = 12},
|
|
koData =
|
|
ClassData{prior = -1.0986122886681098, unseen = -2.833213344056216,
|
|
likelihoods =
|
|
HashMap.fromList
|
|
[("named-daynamed-month", -0.8266785731844679),
|
|
("daymonth", -0.8266785731844679)],
|
|
n = 6}}),
|
|
("named-day",
|
|
Classifier{okData =
|
|
ClassData{prior = 0.0, unseen = -4.406719247264253,
|
|
likelihoods = HashMap.fromList [("", 0.0)], n = 80},
|
|
koData =
|
|
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
|
likelihoods = HashMap.fromList [], n = 0}}),
|
|
("second (grain)",
|
|
Classifier{okData =
|
|
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}}),
|
|
("the day after tomorrow",
|
|
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}}),
|
|
("next <time>",
|
|
Classifier{okData =
|
|
ClassData{prior = -2.2512917986064953,
|
|
unseen = -2.3978952727983707,
|
|
likelihoods =
|
|
HashMap.fromList
|
|
[("day", -1.2039728043259361),
|
|
("named-day", -1.2039728043259361)],
|
|
n = 2},
|
|
koData =
|
|
ClassData{prior = -0.11122563511022437,
|
|
unseen = -3.713572066704308,
|
|
likelihoods =
|
|
HashMap.fromList
|
|
[("<integer> (latent time-of-day)", -1.1239300966523995),
|
|
("month (numeric with month symbol)", -2.995732273553991),
|
|
("day", -2.0794415416798357),
|
|
("named-day", -2.0794415416798357),
|
|
("hour", -1.1239300966523995), ("month", -2.995732273553991)],
|
|
n = 17}}),
|
|
("last <cycle>",
|
|
Classifier{okData =
|
|
ClassData{prior = -0.9555114450274363, unseen = -2.70805020110221,
|
|
likelihoods =
|
|
HashMap.fromList
|
|
[("week", -1.540445040947149),
|
|
("month (grain)", -1.252762968495368),
|
|
("week (grain)", -1.540445040947149),
|
|
("month", -1.252762968495368)],
|
|
n = 5},
|
|
koData =
|
|
ClassData{prior = -0.48550781578170077,
|
|
unseen = -3.044522437723423,
|
|
likelihoods =
|
|
HashMap.fromList
|
|
[("week", -0.7985076962177716),
|
|
("week (grain)", -0.7985076962177716)],
|
|
n = 8}}),
|
|
("christmas",
|
|
Classifier{okData =
|
|
ClassData{prior = 0.0, unseen = -1.791759469228055,
|
|
likelihoods = HashMap.fromList [("", 0.0)], n = 4},
|
|
koData =
|
|
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
|
likelihoods = HashMap.fromList [], n = 0}}),
|
|
("new year's day",
|
|
Classifier{okData =
|
|
ClassData{prior = 0.0, unseen = -1.6094379124341003,
|
|
likelihoods = HashMap.fromList [("", 0.0)], n = 3},
|
|
koData =
|
|
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
|
likelihoods = HashMap.fromList [], n = 0}}),
|
|
("next n <cycle>",
|
|
Classifier{okData =
|
|
ClassData{prior = 0.0, unseen = -4.07753744390572,
|
|
likelihoods =
|
|
HashMap.fromList
|
|
[("week", -2.451005098112319),
|
|
("integer (0..10)month (grain)", -2.6741486494265287),
|
|
("integer (0..10)hour (grain)", -2.451005098112319),
|
|
("second", -2.6741486494265287),
|
|
("integer (0..10)day (grain)", -2.6741486494265287),
|
|
("integer (0..10)year (grain)", -3.367295829986474),
|
|
("integer (0..10)second (grain)", -2.6741486494265287),
|
|
("day", -2.6741486494265287), ("year", -3.367295829986474),
|
|
("integer (0..10)minute (grain)", -2.451005098112319),
|
|
("hour", -2.451005098112319),
|
|
("integer (0..10)week (grain)", -2.451005098112319),
|
|
("month", -2.6741486494265287), ("minute", -2.451005098112319)],
|
|
n = 22},
|
|
koData =
|
|
ClassData{prior = -infinity, unseen = -2.70805020110221,
|
|
likelihoods = HashMap.fromList [], n = 0}}),
|
|
("children's day",
|
|
Classifier{okData =
|
|
ClassData{prior = 0.0, unseen = -1.791759469228055,
|
|
likelihoods = HashMap.fromList [("", 0.0)], n = 4},
|
|
koData =
|
|
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
|
likelihoods = HashMap.fromList [], n = 0}}),
|
|
("<named-month> <day-of-month>",
|
|
Classifier{okData =
|
|
ClassData{prior = 0.0, unseen = -4.770684624465665,
|
|
likelihoods =
|
|
HashMap.fromList
|
|
[("month (numeric with month symbol)integer (11..19)",
|
|
-2.5649493574615367),
|
|
("named-monthinteger (11..19)", -2.5649493574615367),
|
|
("named-monthinteger (numeric)", -3.6635616461296463),
|
|
("month (numeric with month symbol)integer (numeric)",
|
|
-2.1231166051824975),
|
|
("month", -0.7368222440626069),
|
|
("month (numeric with month symbol)integer (0..10)",
|
|
-2.1231166051824975),
|
|
("named-monthinteger (0..10)", -2.277267285009756)],
|
|
n = 55},
|
|
koData =
|
|
ClassData{prior = -infinity, unseen = -2.0794415416798357,
|
|
likelihoods = HashMap.fromList [], n = 0}}),
|
|
("integer (0..10)",
|
|
Classifier{okData =
|
|
ClassData{prior = -0.5010216236693698,
|
|
unseen = -4.8283137373023015,
|
|
likelihoods = HashMap.fromList [("", 0.0)], n = 123},
|
|
koData =
|
|
ClassData{prior = -0.9311793443679057, unseen = -4.406719247264253,
|
|
likelihoods = HashMap.fromList [("", 0.0)], n = 80}}),
|
|
("last n <cycle>",
|
|
Classifier{okData =
|
|
ClassData{prior = 0.0, unseen = -4.61512051684126,
|
|
likelihoods =
|
|
HashMap.fromList
|
|
[("week", -2.995732273553991),
|
|
("integer (0..10)month (grain)", -2.120263536200091),
|
|
("integer (0..10)hour (grain)", -2.4079456086518722),
|
|
("second", -2.659260036932778),
|
|
("integer (0..10)day (grain)", -2.995732273553991),
|
|
("integer (0..10)year (grain)", -3.506557897319982),
|
|
("integer (0..10)second (grain)", -2.659260036932778),
|
|
("day", -2.995732273553991), ("year", -3.506557897319982),
|
|
("integer (0..10)minute (grain)", -2.4079456086518722),
|
|
("hour", -2.4079456086518722),
|
|
("integer (0..10)week (grain)", -2.995732273553991),
|
|
("month", -2.120263536200091), ("minute", -2.4079456086518722)],
|
|
n = 43},
|
|
koData =
|
|
ClassData{prior = -infinity, unseen = -2.70805020110221,
|
|
likelihoods = HashMap.fromList [], n = 0}}),
|
|
("this|next <day-of-week>",
|
|
Classifier{okData =
|
|
ClassData{prior = 0.0, unseen = -2.70805020110221,
|
|
likelihoods =
|
|
HashMap.fromList
|
|
[("day", -0.6931471805599453),
|
|
("named-day", -0.6931471805599453)],
|
|
n = 6},
|
|
koData =
|
|
ClassData{prior = -infinity, unseen = -1.0986122886681098,
|
|
likelihoods = HashMap.fromList [], n = 0}}),
|
|
("ordinal (digits)",
|
|
Classifier{okData =
|
|
ClassData{prior = 0.0, unseen = -1.3862943611198906,
|
|
likelihoods = HashMap.fromList [("integer (0..10)", 0.0)], n = 2},
|
|
koData =
|
|
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
|
likelihoods = HashMap.fromList [], n = 0}}),
|
|
("morning",
|
|
Classifier{okData =
|
|
ClassData{prior = 0.0, unseen = -2.890371757896165,
|
|
likelihoods = HashMap.fromList [("", 0.0)], n = 16},
|
|
koData =
|
|
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
|
likelihoods = HashMap.fromList [], n = 0}}),
|
|
("week-end",
|
|
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}}),
|
|
("day (grain)",
|
|
Classifier{okData =
|
|
ClassData{prior = 0.0, unseen = -2.1972245773362196,
|
|
likelihoods = HashMap.fromList [("", 0.0)], n = 7},
|
|
koData =
|
|
ClassData{prior = -infinity, unseen = -0.6931471805599453,
|
|
likelihoods = HashMap.fromList [], n = 0}}),
|
|
("labor 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}}),
|
|
("women's 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 <time>",
|
|
Classifier{okData =
|
|
ClassData{prior = -0.35667494393873245,
|
|
unseen = -3.5263605246161616,
|
|
likelihoods =
|
|
HashMap.fromList
|
|
[("day", -0.9315582040049435),
|
|
("named-day", -0.9315582040049435),
|
|
("hour", -2.3978952727983707),
|
|
("week-end", -2.3978952727983707)],
|
|
n = 14},
|
|
koData =
|
|
ClassData{prior = -1.2039728043259361, unseen = -2.890371757896165,
|
|
likelihoods =
|
|
HashMap.fromList
|
|
[("<integer> (latent time-of-day)", -0.8873031950009028),
|
|
("hour", -0.8873031950009028)],
|
|
n = 6}})] |