Skip to content

create text authoring sdk 2025-05-15-preview #50393

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 22 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
f048838
initiate first version of Text Authoring 20250515-preview
amber-ccc Jun 3, 2025
2707e28
adding tests for text authoring
amber-ccc Jun 4, 2025
44f8f26
created the sdk that remove extra properties
amber-ccc Jun 26, 2025
e13e54f
updated AssignDeploymentResourcesState and UnassignDeploymentResource…
amber-ccc Jun 26, 2025
687b1a2
updated record tests
amber-ccc Jun 26, 2025
1b116ed
updated some test records.
amber-ccc Jun 27, 2025
ba2d1c9
add tests and records for some legacy features. and add sample templa…
amber-ccc Jun 29, 2025
af073fd
add tests and samples for getDeployment, export and getModelEvalResult
amber-ccc Jun 29, 2025
8a6698e
add sample tests for assignDeploymentResource, getAssignStatus, unAss…
amber-ccc Jun 29, 2025
4178e6b
obscure variable names in sample tests
amber-ccc Jun 29, 2025
19d71bb
updated samples
amber-ccc Jun 29, 2025
ddefb4c
udpated the md and snippets for assing/unAssignDeployment and getAssi…
amber-ccc Jun 29, 2025
cd7d7d3
remove the extra sentence in md files
amber-ccc Jun 29, 2025
97c48d4
amend the default Azure create client snippets for 16,17,18,19 md
amber-ccc Jun 29, 2025
f22404e
update sample links on main readme
amber-ccc Jun 29, 2025
5b3f4a9
udpated snippets to {endpoint} and {api-key}
amber-ccc Jun 29, 2025
8a6ef0f
update change log
amber-ccc Jun 29, 2025
dcae959
Merge branch 'Azure:main' into amber/create_text_authoring_sdk_previe…
amber-ccc Jun 29, 2025
6c209c0
update `Export API` using command
amber-ccc Jun 29, 2025
7606852
add all sample lists.
amber-ccc Jun 29, 2025
4ae96ca
udpate the samples readme
amber-ccc Jun 29, 2025
54eccbc
update change log
amber-ccc Jun 29, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,22 @@

### Features Added

### Breaking Changes
- Added support for Custom Text Authoring API Versions
- 2025-05-15-preview

### Bugs Fixed

- Merged TextAuthoringUnassignDeploymentResourcesState and TextAuthoringAssignDeploymentResourcesState into one class TextAuthoringDeploymentResourcesState

### Other Changes

- Added tests and samples for some legacy features.
- Get Deployment
- Assign Deployment Resources
- Get Assign Deployment Resources Status
- Unassign Deployment Resources
- Get Unassign Deployment Resources Status

## 1.0.0-beta.1 (2025-03-04)

### Other Changes
Expand Down
103 changes: 64 additions & 39 deletions sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/README.md

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,41 @@ Azure Text Authoring is part of the Azure Cognitive Service for Language, a clou

## Common Scenarios Samples

* [Create a New Project (Sync)](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample3_TextAuthoring_CreateProject.md)
* [Create a New Project (Async)](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample3_TextAuthoring_CreateProjectAsync.md)
* [Import a Project (Sync)](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample2_TextAuthoring_Import.md)
* [Import a Project (Async)](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample2_TextAuthoring_ImportAsync.md)
* [Get Project Details (Sync)](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample1_TextAuthoring_GetProject.md)
* [Get Project Details (Async)](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample1_TextAuthoring_GetProjectAsync.md)
* [Delete a Project (Sync)](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample4_TextAuthoring_DeleteProject.md)
* [Delete a Project (Async)](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample4_TextAuthoring_DeleteProjectAsync.md)
* [Train a Model (Sync)](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample5_TextAuthoring_Train.md)
* [Train a Model (Async)](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample5_TextAuthoring_TrainAsync.md)
* [Cancel Training Job (Sync)](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample6_TextAuthoring_CancelTrainingJob.md)
* [Cancel Training Job (Async)](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample6_TextAuthoring_CancelTrainingJobAsync.md)
* [Get Model Evaluation Summary (Sync)](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample7_TextAuthoring_GetModelEvaluationSummary.md)
* [Get Model Evaluation Summary (Async)](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample7_TextAuthoring_GetModelEvaluationSummaryAsync.md)
* [Load Snapshot (Sync)](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample8_TextAuthoring_LoadSnapshot.md)
* [Load Snapshot (Async)](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample8_TextAuthoring_LoadSnapshotAsync.md)
* [Delete a Trained Model (Sync)](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample9_TextAuthoring_DeleteTrainedModel.md)
* [Delete a Trained Model (Async)](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample9_TextAuthoring_DeleteTrainedModelAsync.md)
* [Deploy a Project (Sync)](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample10_TextAuthoring_DeployProject.md)
* [Deploy a Project (Async)](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample10_TextAuthoring_DeployProjectAsync.md)
* [Swap Deployments (Sync)](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample11_TextAuthoring_SwapDeployments.md)
* [Swap Deployments (Async)](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample11_TextAuthoring_SwapDeploymentsAsync.md)
* [Delete a Deployment (Sync)](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample12_TextAuthoring_DeleteDeployment.md)
* [Delete a Deployment (Async)](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample12_TextAuthoring_DeleteDeploymentAsync.md)
* [Create a New Project (Sync)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample1_TextAuthoring_CreateProject.md)
* [Create a New Project (Async)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample1_TextAuthoring_CreateProjectAsync.md)
* [Import a Project (Sync)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample2_TextAuthoring_Import.md)
* [Import a Project (Async)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample2_TextAuthoring_ImportAsync.md)
* [Export a Project (Sync)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample3_TextAuthoring_Export.md)
* [Export a Project (Async)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample3_TextAuthoring_ExportAsync.md)
* [Get Project Details (Sync)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample4_TextAuthoring_GetProject.md)
* [Get Project Details (Async)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample4_TextAuthoring_GetProjectAsync.md)
* [Delete a Project (Sync)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample5_TextAuthoring_DeleteProject.md)
* [Delete a Project (Async)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample5_TextAuthoring_DeleteProjectAsync.md)
* [Train a Model (Sync)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample6_TextAuthoring_Train.md)
* [Train a Model (Async)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample6_TextAuthoring_TrainAsync.md)
* [Cancel Training Job (Sync)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample7_TextAuthoring_CancelTrainingJob.md)
* [Cancel Training Job (Async)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample7_TextAuthoring_CancelTrainingJobAsync.md)
* [Get Model Evaluation Summary (Sync)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample8_TextAuthoring_GetModelEvaluationSummary.md)
* [Get Model Evaluation Summary (Async)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample8_TextAuthoring_GetModelEvaluationSummaryAsync.md)
* [Get Model Evaluation Results (Sync)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample9_TextAuthoring_GetModelEvaluationResults.md)
* [Get Model Evaluation Results (Async)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample9_TextAuthoring_GetModelEvaluationResultsAsync.md)
* [Load Snapshot (Sync)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample10_TextAuthoring_LoadSnapshot.md)
* [Load Snapshot (Async)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample10_TextAuthoring_LoadSnapshotAsync.md)
* [Delete a Trained Model (Sync)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample11_TextAuthoring_DeleteTrainedModel.md)
* [Delete a Trained Model (Async)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample11_TextAuthoring_DeleteTrainedModelAsync.md)
* [Swap Deployments (Sync)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample12_TextAuthoring_SwapDeployments.md)
* [Swap Deployments (Async)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample12_TextAuthoring_SwapDeploymentsAsync.md)
* [Delete a Deployment (Sync)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample13_TextAuthoring_DeleteDeployment.md)
* [Delete a Deployment (Async)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample13_TextAuthoring_DeleteDeploymentAsync.md)
* [Deploy a Project (Sync)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample14_TextAuthoring_DeployProject.md)
* [Deploy a Project (Async)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample14_TextAuthoring_DeployProjectAsync.md)
* [Get Deployment Details (Sync)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample15_TextAuthoring_GetDeployment.md)
* [Get Deployment Details (Async)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample15_TextAuthoring_GetDeploymentAsync.md)
* [Assign Deployment Resources (Sync)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample16_TextAuthoring_AssignDeploymentResources.md)
* [Assign Deployment Resources (Async)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample16_TextAuthoring_AssignDeploymentResourcesAsync.md)
* [Get Deployment Resources Assignment Status (Sync)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample17_TextAuthoring_GetAssignDeploymentResourcesStatus.md)
* [Get Deployment Resources Assignment Status (Async)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample17_TextAuthoring_GetAssignDeploymentResourcesStatusAsync.md)
* [Unassign Deployment Resources (Sync)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample18_TextAuthoring_UnassignDeploymentResources.md)
* [Unassign Deployment Resources (Async)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample18_TextAuthoring_UnassignDeploymentResourcesAsync.md)
* [Get Deployment Resources Unassignment Status (Sync)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample19_TextAuthoring_GetUnassignDeploymentResourcesStatus.md)
* [Get Deployment Resources Unassignment Status (Async)](https://github.com/amber-ccc/azure-sdk-for-net/blob/amber/create_text_authoring_sdk_preview_20250515/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/samples/Sample19_TextAuthoring_GetUnassignDeploymentResourcesStatusAsync.md)
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ This sample demonstrates how to load a snapshot synchronously using the `Azure.A
To create an `AuthoringClient`, you will need the service endpoint and credentials of your Language resource. You can specify the service version by providing an `AuthoringClientOptions` instance.

```C# Snippet:CreateTextAuthoringClientForSpecificApiVersion
Uri endpoint = new Uri("https://myaccount.cognitiveservices.azure.com");
AzureKeyCredential credential = new("your apikey");
Uri endpoint = new Uri("{endpoint}");
AzureKeyCredential credential = new AzureKeyCredential("{api-key}");
TextAnalysisAuthoringClientOptions options = new TextAnalysisAuthoringClientOptions(TextAnalysisAuthoringClientOptions.ServiceVersion.V2024_11_15_Preview);
TextAnalysisAuthoringClient client = new TextAnalysisAuthoringClient(endpoint, credential, options);
```
Expand All @@ -17,9 +17,9 @@ TextAnalysisAuthoringClient client = new TextAnalysisAuthoringClient(endpoint, c

To load a snapshot, call LoadSnapshot on the TextAnalysisAuthoring client.

```C# Snippet:Sample8_TextAuthoring_LoadSnapshot
string projectName = "LoanAgreements";
string trainedModelLabel = "ModelLabel"; // Replace with your actual model label.
```C# Snippet:Sample10_TextAuthoring_LoadSnapshot
string projectName = "MySnapshotProject";
string trainedModelLabel = "model1";
TextAuthoringTrainedModel trainedModelClient = client.GetTrainedModel(projectName, trainedModelLabel);

Operation operation = trainedModelClient.LoadSnapshot(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ This sample demonstrates how to load a snapshot asynchronously using the `Azure.
To create an `AuthoringClient`, you will need the service endpoint and credentials of your Language resource. You can specify the service version by providing an `AuthoringClientOptions` instance.

```C# Snippet:CreateTextAuthoringClientForSpecificApiVersion
Uri endpoint = new Uri("https://myaccount.cognitiveservices.azure.com");
AzureKeyCredential credential = new("your apikey");
Uri endpoint = new Uri("{endpoint}");
AzureKeyCredential credential = new AzureKeyCredential("{api-key}");
TextAnalysisAuthoringClientOptions options = new TextAnalysisAuthoringClientOptions(TextAnalysisAuthoringClientOptions.ServiceVersion.V2024_11_15_Preview);
TextAnalysisAuthoringClient client = new TextAnalysisAuthoringClient(endpoint, credential, options);
```
Expand All @@ -17,9 +17,9 @@ TextAnalysisAuthoringClient client = new TextAnalysisAuthoringClient(endpoint, c

To load a snapshot, call LoadSnapshotAsync on the TextAnalysisAuthoring client.

```C# Snippet:Sample8_TextAuthoring_LoadSnapshotAsync
string projectName = "LoanAgreements";
string trainedModelLabel = "ModelLabel"; // Replace with your actual model label.
```C# Snippet:Sample10_TextAuthoring_LoadSnapshotAsync
string projectName = "MySnapshotProjectAsync";
string trainedModelLabel = "model1"; // Replace with your actual model label.
TextAuthoringTrainedModel trainedModelClient = client.GetTrainedModel(projectName, trainedModelLabel);

Operation operation = await trainedModelClient.LoadSnapshotAsync(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ This sample demonstrates how to delete a trained model synchronously using the `
To create an `AuthoringClient`, you will need the service endpoint and credentials of your Language resource. You can specify the service version by providing an `AuthoringClientOptions` instance.

```C# Snippet:CreateTextAuthoringClientForSpecificApiVersion
Uri endpoint = new Uri("https://myaccount.cognitiveservices.azure.com");
AzureKeyCredential credential = new("your apikey");
Uri endpoint = new Uri("{endpoint}");
AzureKeyCredential credential = new AzureKeyCredential("{api-key}");
TextAnalysisAuthoringClientOptions options = new TextAnalysisAuthoringClientOptions(TextAnalysisAuthoringClientOptions.ServiceVersion.V2024_11_15_Preview);
TextAnalysisAuthoringClient client = new TextAnalysisAuthoringClient(endpoint, credential, options);
```
Expand All @@ -17,9 +17,9 @@ TextAnalysisAuthoringClient client = new TextAnalysisAuthoringClient(endpoint, c

To delete a trained model, call DeleteTrainedModel on the TextAnalysisAuthoring client.

```C# Snippet:Sample9_TextAuthoring_DeleteTrainedModel
string projectName = "LoanAgreements";
string trainedModelLabel = "ModelLabel"; // Replace with the actual model label.
```C# Snippet:Sample11_TextAuthoring_DeleteTrainedModel
string projectName = "MyModelProject";
string trainedModelLabel = "model1";
TextAuthoringTrainedModel trainedModelClient = client.GetTrainedModel(projectName, trainedModelLabel);

Response response = trainedModelClient.DeleteTrainedModel();
Expand Down
Loading
Loading