From c2d8026e9d80a1ceb58550646d5f21cffdfb199a Mon Sep 17 00:00:00 2001 From: Quentin Robinson <32183739+quentinRobinson@users.noreply.github.com> Date: Thu, 19 Dec 2024 13:55:36 -0600 Subject: [PATCH] [Language Text] Renaming for 2024-11-15 .NET Beta SDK release (#31898) client renames for 2024-11-15 .NET Beta SDK --- .../cognitiveservices/Language.AnalyzeText/client.tsp | 11 ++++++++++- .../Language.AnalyzeText/models/custom.text.tsp | 7 +++++++ .../models/entity.recognition.tsp | 7 ------- 3 files changed, 17 insertions(+), 8 deletions(-) diff --git a/specification/cognitiveservices/Language.AnalyzeText/client.tsp b/specification/cognitiveservices/Language.AnalyzeText/client.tsp index 6f1a63fb1bc3..0472cf96bc37 100644 --- a/specification/cognitiveservices/Language.AnalyzeText/client.tsp +++ b/specification/cognitiveservices/Language.AnalyzeText/client.tsp @@ -899,10 +899,14 @@ namespace Language.AnalyzeTextClientCustomizations; @@clientName(analyzeTextJobStatus, "AnalyzeTextOperationStatus", "csharp"); @@clientName(analyzeTextCancelJob, "AnalyzeTextCancelOperation", "csharp"); -@@clientName(EntitiesDocumentResultWithDetectedLanguage, +@@clientName(EntitiesDocumentResultWithMetadataDetectedLanguage, "EntityActionResult", "csharp" ); +@@clientName(EntitiesDocumentResultWithMetadata, + "EntityActionResultWithMetadata", + "csharp" +); @@clientName(ClassificationDocumentResultWithDetectedLanguage, "ClassificationActionResult", "csharp" @@ -932,3 +936,8 @@ namespace Language.AnalyzeTextClientCustomizations; "HealthcareActionResult", "csharp" ); +@@clientName(EntitiesDocumentResultWithDetectedLanguage, + "CustomEntityActionResult", + "csharp" +); +@@clientName(PiiEntityWithTags, "PiiEntity", "csharp"); diff --git a/specification/cognitiveservices/Language.AnalyzeText/models/custom.text.tsp b/specification/cognitiveservices/Language.AnalyzeText/models/custom.text.tsp index 1a8944054a08..79a7c511f278 100644 --- a/specification/cognitiveservices/Language.AnalyzeText/models/custom.text.tsp +++ b/specification/cognitiveservices/Language.AnalyzeText/models/custom.text.tsp @@ -33,6 +33,13 @@ model CustomEntitiesResult is CustomResult { documents: Array; } +/** Contains the entity recognition task result for the document with detected language. */ +@added(Versions.v2024_11_15_preview) +model EntitiesDocumentResultWithDetectedLanguage { + ...EntitiesDocumentResult; + ...DocumentDetectedLanguage; +} + /** Supported parameters for a Custom Single Classification task. */ model CustomSingleLabelClassificationTaskParameters is CustomTaskParameters; diff --git a/specification/cognitiveservices/Language.AnalyzeText/models/entity.recognition.tsp b/specification/cognitiveservices/Language.AnalyzeText/models/entity.recognition.tsp index 97620855e7bc..9d7d1f76468e 100644 --- a/specification/cognitiveservices/Language.AnalyzeText/models/entity.recognition.tsp +++ b/specification/cognitiveservices/Language.AnalyzeText/models/entity.recognition.tsp @@ -80,13 +80,6 @@ model EntitiesDocumentResult is DocumentResult { entities: Array; } -/** Contains the entity recognition task result for the document with detected language. */ -@added(Versions.v2024_11_15_preview) -model EntitiesDocumentResultWithDetectedLanguage { - ...EntitiesDocumentResult; - ...DocumentDetectedLanguage; -} - /** Contains the entity recognition task result for the document with metadata and detected language. */ @added(Versions.v2024_11_15_preview) model EntitiesDocumentResultWithMetadataDetectedLanguage