Skip to content

Commit 330958b

Browse files
authored
[TextAnalytics] Make sure snippets can be compiled (Azure#27675)
* [TextAnalytics] Make sure snippets can be compiled * Updated snippets
1 parent d25ac7c commit 330958b

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample11_MultiCategoryClassify.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ var batchInput = new List<string>
3131
};
3232

3333
// Set project and deployment names of the target model
34-
// To train a model to classify your documents, see https://aka.ms/azsdk/textanalytics/customfunctionalities
34+
// To train a model to classify your documents, see https://aka.ms/azsdk/textanalytics/customfunctionalities
3535
string projectName = "<projectName>";
3636
string deploymentName = "<deploymentName>";
3737

sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample9_RecognizeCustomEntities.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ var actions = new TextAnalyticsActions()
5050
{
5151
RecognizeCustomEntitiesActions = new List<RecognizeCustomEntitiesAction>()
5252
{
53-
new RecognizeCustomEntitiesAction(projectName, deploymentName);
53+
new RecognizeCustomEntitiesAction(projectName, deploymentName)
5454
}
5555
};
5656

sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample11_MultiCategoryClassifyConvenienceAsync.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public async Task MultiCategoryClassifyConvenienceAsync()
3232

3333
// Set project and deployment names of the target model
3434
#if SNIPPET
35-
// To train a model to classify your documents, see https://aka.ms/azsdk/textanalytics/customfunctionalities
35+
// To train a model to classify your documents, see https://aka.ms/azsdk/textanalytics/customfunctionalities
3636
string projectName = "<projectName>";
3737
string deploymentName = "<deploymentName>";
3838
#else

sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample9_RecognizeCustomEntitiesAsync.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ We tried again today and it was amazing. Everyone in my family liked the trail a
5151
{
5252
RecognizeCustomEntitiesActions = new List<RecognizeCustomEntitiesAction>()
5353
{
54-
new RecognizeCustomEntitiesAction(projectName, deploymentName);
54+
new RecognizeCustomEntitiesAction(projectName, deploymentName)
5555
}
5656
};
5757
#else

sdk/textanalytics/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ extends:
2525
template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml
2626
parameters:
2727
ServiceDirectory: textanalytics
28+
BuildSnippets: true
2829
ArtifactName: packages
2930
Artifacts:
3031
- name: Azure.AI.TextAnalytics

0 commit comments

Comments
 (0)