forked from microsoft/Recognizers-Text
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBase-Numbers.yaml
25 lines (25 loc) · 1.15 KB
/
Base-Numbers.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
---
NumberReplaceToken: '@builtin.num'
FractionNumberReplaceToken: '@builtin.num.fraction'
IntegerRegexDefinition: !paramsRegex
def: (((?<!\d+\s*)-\s*)|((?<=\b)(?<!\d+[\.,])))\d{1,3}({thousandsmark}\d{3})+(?={placeholder})
params: [ placeholder, thousandsmark ]
FractionNotationRegex: !simpleRegex
def: ((((?<=\W|^)-\s*)|(?<![/-])(?<=\b))\d+[/]\d+(?=(\b[^/]|$))|[\u00BC-\u00BE\u2150-\u215E])
DoubleRegexDefinition: !paramsRegex
def: (((?<!\d+\s*)-\s*)|((?<=\b)(?<!\d+[\.,])))\d{1,3}(({thousandsmark}\d{3})+{decimalmark}|({decimalmark}\d{3})+{thousandsmark})\d+(?={placeholder})
params: [ placeholder, thousandsmark, decimalmark ]
PlaceHolderDefault: (?=\D)|\b
PlaceHolderMixed: \D|\b
# Not directly in use in QueryProcessor due to inter-dependency issue with different .NET targets
CaseSensitiveTerms: !simpleRegex
def: (?<=(\s|\d))(kB|K[Bb]?|M[BbM]?|G[Bb]?|B)\b
NumberMultiplierRegex: !simpleRegex
def: (K|k|MM?|mil|G|T|B|b)
MultiplierLookupRegex: !simpleRegex
def: (k|m(il|m)?|t|g|b)
CurrencyRegex: !simpleRegex
def: (((?<=\W|^)-\s*)|(?<=\b))\d+\s*(b|m|t|g)(?=\b)
CommonCurrencySymbol: !simpleRegex
def: (¥|\$|€|£|₩)
...