forked from microsoft/Recognizers-Text
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBase-DateTime.yaml
94 lines (94 loc) · 2.25 KB
/
Base-DateTime.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
HourRegex: !simpleRegex
def: (?<!\d[,.])(?<hour>2[0-4]|[0-1]?\d)(h)?
TwoDigitHourRegex: !simpleRegex
def: (?<hour>[0-1]\d|2[0-4])(h)?
MinuteRegex: !simpleRegex
def: (?<min>[0-5]\d)(?!\d)
TwoDigitMinuteRegex: !simpleRegex
def: (?<min>[0-5]\d)(?!\d)
DeltaMinuteRegex: !simpleRegex
def: (?<deltamin>[0-5]?\d)
SecondRegex: !simpleRegex
def: (?<sec>[0-5]?\d)
FourDigitYearRegex: !simpleRegex
def: \b(?<![$])(?<year>((1\d|20)\d{2})|2100)(?!\.0\b)\b
HyphenDateRegex: !simpleRegex
def: ((?<year1>[0-9]{4})-?(?<month1>1[0-2]|0[1-9])-?(?<day1>3[01]|0[1-9]|[12][0-9]))|((?<month2>1[0-2]|0[1-9])-?(?<day2>3[01]|0[1-9]|[12][0-9])-?(?<year2>[0-9]{4}))|((?<day3>3[01]|0[1-9]|[12][0-9])-?(?<month3>1[0-2]|0[1-9])-?(?<year3>[0-9]{4}))
IllegalYearRegex: !nestedRegex
def: ([-])({FourDigitYearRegex})([-])
references: [ FourDigitYearRegex ]
InvalidDayNumberPrefix: !simpleRegex
def: (\d[.,:]|[$£€]\s*)$
CheckDecimalRegex: !simpleRegex
def: (?![,.]\d)
RangeConnectorSymbolRegex: !simpleRegex
def: (--|-|—|——|~|–)
BaseAmDescRegex: !simpleRegex
def: (am\b|a\s*\.\s*m\s*\.|a[\.]?\s*m\b)
BasePmDescRegex: !simpleRegex
def: (pm\b|p\s*\.\s*m\s*\.|p[\.]?\s*m\b)
BaseAmPmDescRegex: !simpleRegex
def: (ampm)
EqualRegex: !simpleRegex
def: (?<!<|>)=
BracketRegex: !simpleRegex
def: ^\s*[\)\]]|[\[\(]\s*$
MinYearNum: 1500
MaxYearNum: 2100
MaxTwoDigitYearFutureNum: 30
MinTwoDigitYearPastNum: 40
DayOfMonthDictionary: !dictionary
types: [ string, int ]
entries:
'01': 1
'02': 2
'03': 3
'04': 4
'05': 5
'06': 6
'07': 7
'08': 8
'09': 9
'1': 1
'2': 2
'3': 3
'4': 4
'5': 5
'6': 6
'7': 7
'8': 8
'9': 9
'10': 10
'11': 11
'12': 12
'13': 13
'14': 14
'15': 15
'16': 16
'17': 17
'18': 18
'19': 19
'20': 20
'21': 21
'22': 22
'23': 23
'24': 24
'25': 25
'26': 26
'27': 27
'28': 28
'29': 29
'30': 30
'31': 31
VariableHolidaysTimexDictionary: !dictionary
types: [ string, string ]
entries:
fathers: -06-WXX-7-3
mothers: -05-WXX-7-2
thanksgiving: -11-WXX-4-4
martinlutherking: -01-WXX-1-3
washingtonsbirthday: -02-WXX-1-3
canberra: -03-WXX-1-1
labour: -09-WXX-1-1
columbus: -10-WXX-1-2
memorial: -05-WXX-1-4