[ZH Number] Add AmbiguityFiltersDict for cases like "伍" (#3044)

This commit is contained in:
Felaray 2023-03-03 08:05:34 +08:00 коммит произвёл GitHub
Родитель ced7af4e70
Коммит aab322fdb5
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 70 добавлений и 58 удалений

Просмотреть файл

@ -256,7 +256,7 @@ namespace Microsoft.Recognizers.Definitions.Chinese
public static readonly Dictionary<string, string> AmbiguityFiltersDict = new Dictionary<string, string>
{
{ @"十", @"十足" },
{ @"伍", @"队伍" },
{ @"伍", @"队伍|入伍|退伍|伍仁" },
{ @"肆", @"放肆|肆意|肆无忌惮" },
{ @"陆", @"大陆|陆地|登陆|海陆" },
{ @"拾", @"拾取|拾起|收拾|拾到|朝花夕拾" }

Просмотреть файл

@ -408,7 +408,7 @@ AmbiguityFiltersDict: !dictionary
types: [ string, string ]
entries:
'十': '十足'
'伍': '队伍'
'伍': '队伍|入伍|退伍|伍仁'
'肆': '放肆|肆意|肆无忌惮'
'陆': '大陆|陆地|登陆|海陆'
'拾': '拾取|拾起|收拾|拾到|朝花夕拾'

Просмотреть файл

@ -2676,92 +2676,92 @@
"Input": "一千分之一",
"NotSupported": "javascript",
"Results": [{
"Text": "一千分之一",
"TypeName": "number",
"Resolution": {
"value": "0.001"
},
"Start": 0,
"End": 4
}]
"Text": "一千分之一",
"TypeName": "number",
"Resolution": {
"value": "0.001"
},
"Start": 0,
"End": 4
}]
},
{
"Input": "壹仟分之贰",
"NotSupported": "javascript",
"Results": [{
"Text": "壹仟分之贰",
"TypeName": "number",
"Resolution": {
"value": "0.002"
},
"Start": 0,
"End": 4
}]
"Text": "壹仟分之贰",
"TypeName": "number",
"Resolution": {
"value": "0.002"
},
"Start": 0,
"End": 4
}]
},
{
"Input": "一万分之三",
"NotSupported": "javascript",
"Results": [{
"Text": "一万分之三",
"TypeName": "number",
"Resolution": {
"value": "0.0003"
},
"Start": 0,
"End": 4
}]
"Text": "一万分之三",
"TypeName": "number",
"Resolution": {
"value": "0.0003"
},
"Start": 0,
"End": 4
}]
},
{
"Input": "壹萬分之肆",
"NotSupported": "javascript",
"Results": [{
"Text": "壹萬分之肆",
"TypeName": "number",
"Resolution": {
"value": "0.0004"
},
"Start": 0,
"End": 4
}]
"Text": "壹萬分之肆",
"TypeName": "number",
"Resolution": {
"value": "0.0004"
},
"Start": 0,
"End": 4
}]
},
{
"Input": "一百万分之五",
"NotSupported": "javascript,python",
"Results": [{
"Text": "一百万分之五",
"TypeName": "number",
"Resolution": {
"value": "5E-06"
},
"Start": 0,
"End": 5
}]
"Text": "一百万分之五",
"TypeName": "number",
"Resolution": {
"value": "5E-06"
},
"Start": 0,
"End": 5
}]
},
{
"Input": "一千万分之六",
"NotSupported": "javascript",
"Results": [{
"Text": "一千万分之六",
"TypeName": "number",
"Resolution": {
"value": "6E-07"
},
"Start": 0,
"End": 5
}]
"Text": "一千万分之六",
"TypeName": "number",
"Resolution": {
"value": "6E-07"
},
"Start": 0,
"End": 5
}]
},
{
"Input": "一万万分之七",
"NotSupported": "javascript",
"Results": [{
"Text": "一万万分之七",
"TypeName": "number",
"Resolution": {
"value": "7E-08"
},
"Start": 0,
"End": 5
}]
"Text": "一万万分之七",
"TypeName": "number",
"Resolution": {
"value": "7E-08"
},
"Start": 0,
"End": 5
}]
},
{
"Input": "六千零五十一个百分点",
@ -4950,6 +4950,18 @@
"NotSupported": "python, javascript, java",
"Results": []
},
{
"Input": "入伍時分總令人感傷",
"Results": []
},
{
"Input": "我準備要退伍了",
"Results": []
},
{
"Input": "請問伍仁怎麼賣",
"Results": []
},
{
"Input": "小明每天收拾房间",
"Results": []