You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/cognitive-services/language-service/custom-text-classification/includes/rest-api/cancel-training.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,15 +17,15 @@ Create a **POST** request by using the following URL, headers, and JSON body to
17
17
Use the following URL when creating your API request. Replace the placeholder values below with your own values.
|`{ENDPOINT}`| The endpoint for authenticating your API request. |`https://<your-custom-subdomain>.cognitiveservices.azure.com`|
26
26
|`{PROJECT-NAME}`| The name for your project. This value is case-sensitive. |`EmailApp`|
27
27
|`{JOB-ID}`| This value is the training job ID.|`XXXXX-XXXXX-XXXX-XX`|
28
-
|`{API-VERSION}`| The version of the API you're calling. The value referenced is for the latest released [model version](../../../concepts/model-lifecycle.md#choose-the-model-version-used-on-your-data). |`2022-03-01-preview`|
28
+
|`{API-VERSION}`| The version of the API you're calling. The value referenced is for the latest released [model version](../../../concepts/model-lifecycle.md#choose-the-model-version-used-on-your-data). |`2022-05-01`|
29
29
30
30
### Headers
31
31
@@ -35,4 +35,4 @@ Use the following header to authenticate your request.
35
35
|--|--|
36
36
|`Ocp-Apim-Subscription-Key`| The key to your resource. Used for authenticating your API requests.|
37
37
38
-
After you send your API request, you'll receive a 204 response indicating success, which means your training job has been canceled.
38
+
After you send your API request, you'll receive a 202 response with an `Operation-Location` header used to check the status of the job.
Copy file name to clipboardExpand all lines: articles/cognitive-services/language-service/custom-text-classification/includes/rest-api/create-project.md
+48-45Lines changed: 48 additions & 45 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,19 +12,22 @@ To start creating a custom text classification model, you need to create a proje
12
12
> [!NOTE]
13
13
> The project name is case-sensitive for all operations.
14
14
15
-
Create a **POST** request using the following URL, headers, and JSON body to create your project and import the labels file.
15
+
Create a **PATCH** request using the following URL, headers, and JSON body to create your project.
16
16
17
17
### Request URL
18
18
19
-
Use the following URL to create a project and import your labels file. Replace the placeholder values below with your own values.
19
+
Use the following URL to create a project. Replace the placeholder values below with your own values.
|`{YOUR-ENDPOINT}`| The endpoint for authenticating your API request. |`https://<your-custom-subdomain>.cognitiveservices.azure.com`|
27
+
|`{ENDPOINT}`| The endpoint for authenticating your API request. |`https://<your-custom-subdomain>.cognitiveservices.azure.com`|
28
+
|`{PROJECT-NAME}`| The name for your project. This value is case-sensitive. |`myProject`|
29
+
|`{API-VERSION}`| The version of the API you are calling. The value referenced here is for the latest version released. See [Model lifecycle](../../../concepts/model-lifecycle.md#choose-the-model-version-used-on-your-data) to learn more about other available API versions. |`2022-05-01`|
30
+
28
31
29
32
### Headers
30
33
@@ -38,54 +41,54 @@ Use the following header to authenticate your request.
38
41
39
42
Use the following JSON in your request. Replace the placeholder values below with your own values.
|`modelType `| Your Model type, for single label classification use `singleClassification`. | multiClassification |
79
-
|`storageInputContainerName`| The name of your Azure blob storage container. |`myContainer`|
58
+
|Key |Placeholder|Value | Example |
59
+
|---------|---------|---------|--|
60
+
| projectName |`{PROJECT-NAME}`| The name of your project. This value is case-sensitive. |`myProject`|
61
+
| language |`{LANGUAGE-CODE}`| A string specifying the language code for the documents used in your project. If your project is a multilingual project, choose the language code of the majority of the documents. See [language support](../../language-support.md) to learn more about supported language codes. |`en-us`|
62
+
| projectKind |`customMultiLabelClassification`| Your project kind. |`customMultiLabelClassification`|
63
+
| multilingual |`true`| A boolean value that enables you to have documents in multiple languages in your dataset and when your model is deployed you can query the model in any supported language (not necessarily included in your training documents. See [language support](../../language-support.md#multi-lingual-option) to learn more about multilingual support. |`true`|
64
+
| storageInputContainerName |`{CONTAINER-NAME}`| The name of your Azure storage container where you have uploaded your documents. |`myContainer`|
80
65
81
-
For the documents key:
66
+
---
82
67
83
-
|Key |Value | Example |
84
-
|---------|---------|---------|
85
-
|`location`| Document name on the blob store. |`doc2.txt`|
86
-
|`language`| The language of the document. |`en-us`|
87
-
|`dataset`| Optional field to specify the dataset that this document will belong to. |`Train` or `Test`|
| projectName |`{PROJECT-NAME}`| The name of your project. This value is case-sensitive. |`myProject`|
83
+
| language |`{LANGUAGE-CODE}`| A string specifying the language code for the documents used in your project. If your project is a multilingual project, choose the language code of the majority of the documents. See [language support](../../language-support.md) to learn more about supported language codes. |`en-us`|
84
+
| projectKind |`customSingleLabelClassification`| Your project kind. |`customSingleLabelClassification`|
85
+
| multilingual |`true`| A boolean value that enables you to have documents in multiple languages in your dataset and when your model is deployed you can query the model in any supported language (not necessarily included in your training documents. See [language support](../../language-support.md#multi-lingual-option) to learn more about multilingual support. |`true`|
86
+
| storageInputContainerName |`{CONTAINER-NAME}`| The name of your Azure storage container where you have uploaded your documents. |`myContainer`|
87
+
88
+
---
90
89
90
+
This request will return a 201 response, which means that the project is created.
91
+
92
+
93
+
This request will return an error if:
91
94
* The selected resource doesn't have proper permission for the storage account.
Copy file name to clipboardExpand all lines: articles/cognitive-services/language-service/custom-text-classification/includes/rest-api/delete-deployment.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,15 +18,15 @@ Create a **DELETE** request using the following URL, headers, and JSON body to d
|`{ENDPOINT}`| The endpoint for authenticating your API request. |`https://<your-custom-subdomain>.cognitiveservices.azure.com`|
27
27
|`{PROJECT-NAME}`| The name for your project. This value is case-sensitive. |`myProject`|
28
28
|`{DEPLOYMENT-NAME}`| The name for your deployment name. This value is case-sensitive. |`prod`|
29
-
|`{API-VERSION}`| The version of the API you are calling. The value referenced here is for the latest version released. Learn more about other available [API versions](../../../concepts/model-lifecycle.md#choose-the-model-version-used-on-your-data)|`2022-03-01-preview`|
29
+
|`{API-VERSION}`| The version of the API you are calling. The value referenced here is for the latest version released. Learn more about other available [API versions](../../../concepts/model-lifecycle.md#choose-the-model-version-used-on-your-data)|`2022-05-01`|
30
30
31
31
### Headers
32
32
@@ -37,4 +37,6 @@ Use the following header to authenticate your request.
37
37
|`Ocp-Apim-Subscription-Key`| The key to your resource. Used for authenticating your API requests.|
38
38
39
39
40
-
Once you send your API request, you will receive a `202` response indicating success, which means your deployment has been deleted.
40
+
Once you send your API request, you will receive a `202` response indicating success, which means your deployment has been deleted. A successful call results with an `Operation-Location` header used to check the status of the job.
|`{ENDPOINT}`| The endpoint for authenticating your API request. |`https://<your-custom-subdomain>.cognitiveservices.azure.com`|
27
27
|`{PROJECT-NAME}`| The name for your project. This value is case-sensitive. |`myProject`|
28
28
|`{trainedModelLabel}`| The name for your model name. This value is case-sensitive. |`model1`|
29
-
|`{API-VERSION}`| The version of the API you are calling. The value referenced here is for the latest version released. Learn more about other available [API versions](../../../concepts/model-lifecycle.md#choose-the-model-version-used-on-your-data)|`2022-03-01-preview`|
29
+
|`{API-VERSION}`| The version of the API you are calling. The value referenced here is for the latest version released. Learn more about other available [API versions](../../../concepts/model-lifecycle.md#choose-the-model-version-used-on-your-data)|`2022-05-01`|
30
30
31
31
### Headers
32
32
@@ -37,4 +37,4 @@ Use the following header to authenticate your request.
37
37
|`Ocp-Apim-Subscription-Key`| The key to your resource. Used for authenticating your API requests.|
38
38
39
39
40
-
Once you send your API request, you will receive a `202` response indicating success, which means your model has been deleted.
40
+
Once you send your API request, you will receive a `204` response indicating success, which means your trained model has been deleted.
Copy file name to clipboardExpand all lines: articles/cognitive-services/language-service/custom-text-classification/includes/rest-api/delete-project.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,14 +12,14 @@ ms.author: aahi
12
12
When you no longer need your project, you can delete it with the following **DELETE** request. Replace the placeholder values with your own values.
|`{ENDPOINT}`| The endpoint for authenticating your API request. |`https://<your-custom-subdomain>.cognitiveservices.azure.com`|
21
21
|`{PROJECT-NAME}`| The name for your project. This value is case-sensitive. |`myProject`|
22
-
|`{API-VERSION}`| The version of the API you are calling. The value referenced here is for the latest version released. Learn more about other available [API versions](../../../concepts/model-lifecycle.md#choose-the-model-version-used-on-your-data)|`2022-03-01-preview`|
22
+
|`{API-VERSION}`| The version of the API you are calling. The value referenced here is for the latest version released. Learn more about other available [API versions](../../../concepts/model-lifecycle.md#choose-the-model-version-used-on-your-data)|`2022-05-01`|
23
23
24
24
### Headers
25
25
@@ -30,4 +30,4 @@ Use the following header to authenticate your request.
30
30
|Ocp-Apim-Subscription-Key| The key to your resource. Used for authenticating your API requests.|
31
31
32
32
33
-
Once you send your API request, you will receive a `202` response indicating success, which means your project has been deleted.
33
+
Once you send your API request, you will receive a `202` response indicating success, which means your project has been deleted. A successful call results with an `Operation-Location` header used to check the status of the job.
Copy file name to clipboardExpand all lines: articles/cognitive-services/language-service/custom-text-classification/includes/rest-api/deploy-model.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,15 +13,15 @@ ms.author: aahi
13
13
Submit a **PUT** request using the following URL, headers, and JSON body to submit a deployment job. Replace the placeholder values below with your own values.
|`{ENDPOINT}`| The endpoint for authenticating your API request. |`https://<your-custom-subdomain>.cognitiveservices.azure.com`|
22
22
|`{PROJECT-NAME}`| The name of your project. This value is case-sensitive. |`myProject`|
23
23
|`{DEPLOYMENT-NAME}`| The name of your deployment. This value is case-sensitive. |`staging`|
24
-
|`{API-VERSION}`| The version of the API you are calling. The value referenced here is for the latest version released. Learn more about other available [API versions](../../../concepts/model-lifecycle.md#choose-the-model-version-used-on-your-data)|`2022-03-01-preview`|
24
+
|`{API-VERSION}`| The version of the API you are calling. The value referenced here is for the latest version released. Learn more about other available [API versions](../../../concepts/model-lifecycle.md#choose-the-model-version-used-on-your-data)|`2022-05-01`|
25
25
26
26
#### Headers
27
27
@@ -45,7 +45,7 @@ Use the following JSON in the body of your request. Use the name of the model yo
45
45
|---------|---------|-----|----|
46
46
| trainedModelLabel |`{MODEL-NAME}`| The model name that will be assigned to your deployment. You can only assign successfully trained models. This value is case-sensitive. |`myModel`|
47
47
48
-
Once you send your API request, you’ll receive a `202` response indicating that the job was submitted correctly. In the response headers, extract the `location` value. It will be formatted like this:
48
+
Once you send your API request, you’ll receive a `202` response indicating that the job was submitted correctly. In the response headers, extract the `operation-location` value. It will be formatted like this:
Copy file name to clipboardExpand all lines: articles/cognitive-services/language-service/custom-text-classification/includes/rest-api/export-project.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,14 +18,14 @@ Create a **POST** request using the following URL, headers, and JSON body to exp
18
18
Use the following URL when creating your API request. Replace the placeholder values below with your own values.
|`{ENDPOINT}`| The endpoint for authenticating your API request. |`https://<your-custom-subdomain>.cognitiveservices.azure.com`|
27
27
|`{PROJECT-NAME}`| The name for your project. This value is case-sensitive. |`MyProject`|
28
-
|`{API-VERSION}`| The version of the API you are calling. The value referenced here is the latest [model version](../../../concepts/model-lifecycle.md#choose-the-model-version-used-on-your-data) released. |`2022-03-01-preview`|
28
+
|`{API-VERSION}`| The version of the API you are calling. The value referenced here is the latest [model version](../../../concepts/model-lifecycle.md#choose-the-model-version-used-on-your-data) released. |`2022-05-01`|
Copy file name to clipboardExpand all lines: articles/cognitive-services/language-service/custom-text-classification/includes/rest-api/get-deployment-status.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ Use the following **GET** request to query the status of the deployment job. You
22
22
|`{PROJECT-NAME}`| The name of your project. This value is case-sensitive. |`myProject`|
23
23
|`{DEPLOYMENT-NAME}`| The name of your deployment. This value is case-sensitive. |`staging`|
24
24
|`{JOB-ID}`| The ID for locating your model's training status. This is in the `location` header value you received in the previous step. |`xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx`|
25
-
|`{API-VERSION}`| The version of the API you are calling. The value referenced here is for the latest version released. Learn more about other available [API versions](../../../concepts/model-lifecycle.md#choose-the-model-version-used-on-your-data)|`2022-03-01-preview`|
25
+
|`{API-VERSION}`| The version of the API you are calling. The value referenced here is for the latest version released. Learn more about other available [API versions](../../../concepts/model-lifecycle.md#choose-the-model-version-used-on-your-data)|`2022-05-01`|
26
26
27
27
#### Headers
28
28
@@ -35,7 +35,7 @@ Use the following header to authenticate your request.
35
35
36
36
### Response Body
37
37
38
-
Once you send the request, you will get the following response. Keep polling this endpoint until the **status** parameter changes to "succeeded".
38
+
Once you send the request, you will get the following response. Keep polling this endpoint until the **status** parameter changes to "succeeded". You should get a `200` code to indicate the success of the request.
0 commit comments