From bb1a59c70154c48e1afd7393dee2ec9cd7b4a3d8 Mon Sep 17 00:00:00 2001 From: Arvind Krishnaa J Date: Fri, 5 Apr 2019 11:41:26 -0700 Subject: [PATCH] [Azure Search] Introduce the minimumPrecision parameter for Entity recognition skill (#5553) * Introduce the minimumPrecision parameter for Entity recognition skill * Fix weird indentation --- .../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..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 @@ -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": {