From 5d8b4adc86f44bca0d76e80828a5c26bbde02f69 Mon Sep 17 00:00:00 2001 From: Arvind Krishnaa Jagannathan Date: Thu, 4 Apr 2019 16:53:31 -0700 Subject: [PATCH 1/2] Introduce the minimumPrecision parameter for Entity recognition skill --- .../examples/SearchServiceCreateOrUpdateSkillset.json | 7 +++++-- .../examples/SearchServiceCreateSkillset.json | 4 +++- .../examples/SearchServiceGetSkillset.json | 3 ++- .../examples/SearchServiceListSkillsets.json | 3 ++- .../preview/2017-11-11-preview/searchservice.json | 8 +++++++- 5 files changed, 19 insertions(+), 6 deletions(-) diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceCreateOrUpdateSkillset.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceCreateOrUpdateSkillset.json index fa698184e62a..0e852af5f0ff 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceCreateOrUpdateSkillset.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceCreateOrUpdateSkillset.json @@ -15,6 +15,7 @@ "organization" ], "defaultLanguageCode": "en", + "minimumPrecision": 0.7, "inputs": [ { "name": "text", @@ -112,7 +113,8 @@ "categories": [ "organization" ], - "defaultLanguageCode": "en" + "defaultLanguageCode": "en", + "minimumPrecision": 0.7 }, { "@odata.type": "#Microsoft.Skills.Text.LanguageDetectionSkill", @@ -205,7 +207,8 @@ "categories": [ "organization" ], - "defaultLanguageCode": "en" + "defaultLanguageCode": "en", + "minimumPrecision": 0.7 }, { "@odata.type": "#Microsoft.Skills.Text.LanguageDetectionSkill", diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceCreateSkillset.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceCreateSkillset.json index 74dd9cc0bb6c..de9a119ec2c5 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceCreateSkillset.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceCreateSkillset.json @@ -15,6 +15,7 @@ "organization" ], "defaultLanguageCode": "en", + "minimumPrecision": 0.7, "inputs": [ { "name": "text", @@ -112,7 +113,8 @@ "categories": [ "organization" ], - "defaultLanguageCode": "en" + "defaultLanguageCode": "en", + "minimumPrecision": 0.7 }, { "@odata.type": "#Microsoft.Skills.Text.LanguageDetectionSkill", diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceGetSkillset.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceGetSkillset.json index c3cbcc4890a7..d4a1b6ae6f23 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceGetSkillset.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceGetSkillset.json @@ -30,7 +30,8 @@ "categories": [ "organization" ], - "defaultLanguageCode": "en" + "defaultLanguageCode": "en", + "minimumPrecision": 0.7 }, { "@odata.type": "#Microsoft.Skills.Text.LanguageDetectionSkill", diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceListSkillsets.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceListSkillsets.json index 74524b07d9e6..8191333f08fc 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceListSkillsets.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceListSkillsets.json @@ -31,7 +31,8 @@ "categories": [ "organization" ], - "defaultLanguageCode": "en" + "defaultLanguageCode": "en", + "minimumPrecision": 0.7 }, { "@odata.type": "#Microsoft.Skills.Text.LanguageDetectionSkill", diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/searchservice.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/searchservice.json index 0bd9444a50df..2c4cef2f4c08 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/searchservice.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/searchservice.json @@ -4738,7 +4738,13 @@ "includeTypelessEntities": { "type": "boolean", "x-nullable": true, - "description": "Determines whether or not to include entities which are well known but don't conform to a type. If this configuration is not set (default), set to null or set to false, entities which don't have a type will not be surfaced." + "description": "Determines whether or not to include entities which are well known but don't conform to a pre-defined type. If this configuration is not set (default), set to null or set to false, entities which don't conform to one of the pre-defined types will not be surfaced." + }, + "minimumPrecision": { + "type": "number", + "format": "double", + "x-nullable": true, + "description": "A value between 0 and 1 that be used to only include entities whose confidence score is greater than the value specified. If not set (default), or if explicitly set to null, all entities will be included." } }, "externalDocs": { From 3b96f244150a874f4eaf58ed32732fed653818f6 Mon Sep 17 00:00:00 2001 From: Arvind Krishnaa Jagannathan Date: Thu, 4 Apr 2019 17:01:44 -0700 Subject: [PATCH 2/2] Fix weird indentation --- .../2017-11-11-preview/examples/SearchServiceListSkillsets.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceListSkillsets.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceListSkillsets.json index 8191333f08fc..61c551920c8d 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceListSkillsets.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2017-11-11-preview/examples/SearchServiceListSkillsets.json @@ -32,7 +32,7 @@ "organization" ], "defaultLanguageCode": "en", - "minimumPrecision": 0.7 + "minimumPrecision": 0.7 }, { "@odata.type": "#Microsoft.Skills.Text.LanguageDetectionSkill",