Skip to content

Commit 5b22bb6

Browse files
committed
fixes
1 parent 9eb9d0d commit 5b22bb6

File tree

8 files changed

+223
-6
lines changed

8 files changed

+223
-6
lines changed

articles/cognitive-services/language-service/custom-text-analytics-for-health/how-to/deploy-model.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Once you're satisfied with how your model performs, it's ready to be deployed an
2121

2222
* A successfully [created project](create-project.md) with a configured Azure storage account.
2323
* Text data that has [been uploaded](design-schema.md#data-preparation) to your storage account.
24-
* [Labeled data](tag-data.md) and successfully [trained model](train-model.md)
24+
* [Labeled data](label-data.md) and a successfully [trained model](train-model.md).
2525
* Reviewed the [model evaluation details](view-model-evaluation.md) to determine how your model is performing.
2626

2727
For more information, see [project development lifecycle](../overview.md#project-development-lifecycle).
@@ -79,7 +79,7 @@ You can [deploy your project to multiple regions](../../concepts/custom-features
7979

8080
# [Language Studio](#tab/language-studio)
8181

82-
[!INCLUDE [Assign resource](../../includes/custom/conversational-language-understanding/includes/language-studio/assign-resources.md)]
82+
[!INCLUDE [Assign resource](../../conversational-language-understanding/includes/language-studio/assign-resources.md)]
8383

8484
# [REST APIs](#tab/rest-api)
8585

articles/cognitive-services/language-service/custom-text-analytics-for-health/how-to/train-model.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ms.custom: language-service-custom-ta4h
1515

1616
# Train your custom Text Analytics for health model
1717

18-
Training is the process where the model learns from your [labeled data](tag-data.md). After training is completed, you'll be able to view the [model's performance](view-model-evaluation.md) to determine if you need to improve your model.
18+
Training is the process where the model learns from your [labeled data](label-data.md). After training is completed, you'll be able to view the [model's performance](view-model-evaluation.md) to determine if you need to improve your model.
1919

2020
To train a model, you start a training job and only successfully completed jobs create a model. Training jobs expire after seven days, which means you won't be able to retrieve the job details after this time. If your training job completed successfully and a model was created, the model won't be affected. You can only have one training job running at a time, and you can't start other jobs in the same project.
2121

@@ -26,7 +26,7 @@ The training times can be anywhere from a few minutes when dealing with few docu
2626

2727
* A successfully [created project](create-project.md) with a configured Azure blob storage account
2828
* Text data that [has been uploaded](design-schema.md#data-preparation) to your storage account.
29-
* [Labeled data](tag-data.md)
29+
* [Labeled data](label-data.md)
3030

3131
See the [project development lifecycle](../overview.md#project-development-lifecycle) for more information.
3232

@@ -44,7 +44,7 @@ Custom Text Analytics for health supports two methods for data splitting:
4444
> [!NOTE]
4545
> If you choose the **Automatically splitting the testing set from training data** option, only the data assigned to training set will be split according to the percentages provided.
4646
47-
* **Use a manual split of training and testing data**: This method enables users to define which labeled documents should belong to which set. This step is only enabled if you have added documents to your testing set during [data labeling](tag-data.md).
47+
* **Use a manual split of training and testing data**: This method enables users to define which labeled documents should belong to which set. This step is only enabled if you have added documents to your testing set during [data labeling](label-data.md).
4848

4949
## Train model
5050

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
services: cognitive-services
3+
author: aahill
4+
manager: nitinme
5+
ms.service: cognitive-services
6+
ms.subservice: language-service
7+
ms.custom: event-tier1-build-2022
8+
ms.topic: include
9+
ms.date: 05/24/2022
10+
ms.author: aahi
11+
---
12+
13+
To cancel a training job from within [Language Studio](https://aka.ms/languageStudio), go to the **Training jobs** page. Select the training job you want to cancel and click on **Cancel** from the top menu.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
author: aahill
3+
manager: nitinme
4+
ms.service: cognitive-services
5+
ms.subservice: language-service
6+
ms.custom: event-tier1-build-2022
7+
ms.topic: include
8+
ms.date: 05/06/2022
9+
ms.author: aahi
10+
---
11+
12+
Create a **POST** request by using the following URL, headers, and JSON body to cancel a training job.
13+
14+
### Request URL
15+
16+
Use the following URL when creating your API request. Replace the placeholder values below with your own values.
17+
18+
```rest
19+
{Endpoint}/language/authoring/analyze-text/projects/{PROJECT-NAME}/train/jobs/{JOB-ID}/:cancel?api-version={API-VERSION}
20+
```
21+
22+
|Placeholder |Value | Example |
23+
|---------|---------|---------|
24+
|`{ENDPOINT}` | The endpoint for authenticating your API request. | `https://<your-custom-subdomain>.cognitiveservices.azure.com` |
25+
|`{PROJECT-NAME}` | The name for your project. This value is case-sensitive. | `EmailApp` |
26+
|`{JOB-ID}` | This value is the training job ID.| `XXXXX-XXXXX-XXXX-XX`|
27+
|`{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` |
28+
29+
### Headers
30+
31+
Use the following header to authenticate your request.
32+
33+
|Key|Value|
34+
|--|--|
35+
|`Ocp-Apim-Subscription-Key`| The key to your resource. Used for authenticating your API requests.|
36+
37+
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.
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
---
2+
services: cognitive-services
3+
author: aahill
4+
manager: nitinme
5+
ms.service: cognitive-services
6+
ms.subservice: language-service
7+
ms.topic: include
8+
ms.date: 05/09/2022
9+
ms.author: aahi
10+
ms.custom: ignite-fall-2021, event-tier1-build-2022
11+
---
12+
13+
Create a **POST** request using the following URL, headers, and JSON body to export your project.
14+
15+
### Request URL
16+
17+
Use the following URL when creating your API request. Replace the placeholder values below with your own values.
18+
19+
```rest
20+
{ENDPOINT}/language/authoring/analyze-text/projects/{PROJECT-NAME}/:export?stringIndexType=Utf16CodeUnit&api-version={API-VERSION}
21+
```
22+
23+
|Placeholder |Value | Example |
24+
|---------|---------|---------|
25+
|`{ENDPOINT}` | The endpoint for authenticating your API request. | `https://<your-custom-subdomain>.cognitiveservices.azure.com` |
26+
|`{PROJECT-NAME}` | The name for your project. This value is case-sensitive. | `MyProject` |
27+
|`{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` |
28+
29+
### Headers
30+
31+
Use the following header to authenticate your request.
32+
33+
|Key|Value|
34+
|--|--|
35+
|`Ocp-Apim-Subscription-Key`| The key to your resource. Used for authenticating your API requests.|
36+
37+
#### Body
38+
39+
Use the following JSON in your request body specifying that you want to export all the assets.
40+
41+
```json
42+
{
43+
"assetsToExport": ["*"]
44+
}
45+
```
46+
47+
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:
48+
49+
```rest
50+
{ENDPOINT}/language/authoring/analyze-text/projects/{PROJECT-NAME}/export/jobs/{JOB-ID}?api-version={API-VERSION}
51+
```
52+
53+
`{JOB-ID}` is used to identify your request, since this operation is asynchronous. You’ll use this URL to get the export job status.
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
---
2+
author: aahill
3+
manager: nitinme
4+
ms.service: cognitive-services
5+
ms.subservice: language-service
6+
ms.custom: event-tier1-build-2022
7+
ms.topic: include
8+
ms.date: 05/09/2022
9+
ms.author: aahi
10+
---
11+
12+
Use the following **GET** request to get the status of exporting your project assets. Replace the placeholder values below with your own values.
13+
14+
### Request URL
15+
16+
```rest
17+
{ENDPOINT}/language/authoring/analyze-text/projects/{PROJECT-NAME}/export/jobs/{JOB-ID}?api-version={API-VERSION}
18+
```
19+
20+
|Placeholder |Value | Example |
21+
|---------|---------|---------|
22+
|`{ENDPOINT}` | The endpoint for authenticating your API request. | `https://<your-custom-subdomain>.cognitiveservices.azure.com` |
23+
|`{PROJECT-NAME}` | The name of your project. This value is case-sensitive. | `myProject` |
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. 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` |
26+
27+
### Headers
28+
29+
Use the following header to authenticate your request.
30+
31+
|Key|Value|
32+
|--|--|
33+
|`Ocp-Apim-Subscription-Key`| The key to your resource. Used for authenticating your API requests.|
34+
35+
### Response body
36+
37+
```json
38+
{
39+
"resultUrl": "{RESULT-URL}",
40+
"jobId": "string",
41+
"createdDateTime": "2021-10-19T23:24:41.572Z",
42+
"lastUpdatedDateTime": "2021-10-19T23:24:41.572Z",
43+
"expirationDateTime": "2021-10-19T23:24:41.572Z",
44+
"status": "unknown",
45+
"errors": [
46+
{
47+
"code": "unknown",
48+
"message": "string"
49+
}
50+
]
51+
}
52+
```
53+
54+
Use the URL from the `resultUrl` key in the body to view the exported assets from this job.
55+
56+
### Get export results
57+
58+
Submit a **GET** request using the `{RESULT-URL}` you received from the previous step to view the results of the export job.
59+
60+
#### Headers
61+
62+
Use the following header to authenticate your request.
63+
64+
|Key|Value|
65+
|--|--|
66+
|`Ocp-Apim-Subscription-Key`| The key to your resource. Used for authenticating your API requests.|
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
author: aahill
3+
manager: nitinme
4+
ms.service: cognitive-services
5+
ms.subservice: language-service
6+
ms.custom: event-tier1-build-2022
7+
ms.topic: include
8+
ms.date: 05/09/2022
9+
ms.author: aahi
10+
---
11+
12+
Use the following **GET** request to get your project details. Replace the placeholder values below with your own values.
13+
14+
```rest
15+
{ENDPOINT}/language/authoring/analyze-text/projects/{PROJECT-NAME}?api-version={API-VERSION}
16+
```
17+
18+
|Placeholder |Value | Example |
19+
|---------|---------|---------|
20+
|`{ENDPOINT}` | The endpoint for authenticating your API request. | `https://<your-custom-subdomain>.cognitiveservices.azure.com` |
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. 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` |
23+
24+
#### Headers
25+
26+
Use the following header to authenticate your request.
27+
28+
|Key|Value|
29+
|--|--|
30+
|`Ocp-Apim-Subscription-Key`| The key to your resource. Used for authenticating your API requests.|
31+
32+
#### Response body
33+
34+
```json
35+
{
36+
"createdDateTime": "2021-10-19T23:24:41.572Z",
37+
"lastModifiedDateTime": "2021-10-19T23:24:41.572Z",
38+
"lastTrainedDateTime": "2021-10-19T23:24:41.572Z",
39+
"lastDeployedDateTime": "2021-10-19T23:24:41.572Z",
40+
"projectKind": "CustomEntityRecognition",
41+
"storageInputContainerName": "{CONTAINER-NAME}",
42+
"projectName": "{PROJECT-NAME}",
43+
"multilingual": false,
44+
"description": "Project description",
45+
"language": "{LANGUAGE-CODE}"
46+
}
47+
```
48+

articles/cognitive-services/language-service/toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1096,7 +1096,7 @@ items:
10961096
- name: View model evaluation
10971097
href: custom-text-analytics-for-health/how-to/view-model-evaluation.md
10981098
- name: Deploy a model
1099-
href: custom-text-analytics-for-health/how-to/deploy-model
1099+
href: custom-text-analytics-for-health/how-to/deploy-model.md
11001100
- name: Call the API
11011101
href: custom-text-analytics-for-health/how-to/call-api.md
11021102
- name: Back up and recover your models

0 commit comments

Comments
 (0)