|
| 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: 06/07/2022 |
| 9 | +ms.author: aahi |
| 10 | +--- |
| 11 | + |
| 12 | +## Prerequisites |
| 13 | + |
| 14 | +* Azure subscription - [Create one for free](https://azure.microsoft.com/free/cognitive-services) |
| 15 | + |
| 16 | +> [!div class="nextstepaction"] |
| 17 | +> <a href="https://microsoft.qualtrics.com/jfe/form/SV_0Cl5zkG3CnDjq6O?PLanguage=REST API&Pillar=Language&Product=Custom-text-analytics-for-health&Page=quickstart&Section=Trigger-import-project-job" target="_target">I ran into an issue</a> |
| 18 | +
|
| 19 | +## Create a new Azure Language resource and Azure storage account |
| 20 | + |
| 21 | +Before you can use custom Text Analytics for health, you'll need to create an Azure Language resource, which will give you the credentials that you need to create a project and start training a model. You'll also need an Azure storage account, where you can upload your dataset that will be used in building your model. |
| 22 | + |
| 23 | +> [!IMPORTANT] |
| 24 | +> To get started quickly, we recommend creating a new Azure Language resource using the steps provided in this article, which will let you create the Language resource, and create and/or connect a storage account at the same time, which is easier than doing it later. |
| 25 | +
|
| 26 | +<!-- |
| 27 | +> If you have a pre-existing resource that you'd like to use, you will need to connect it to storage account. See [create project](../../how-to/create-project.md#using-a-pre-existing-language-resource) for information. |
| 28 | +--> |
| 29 | +[!INCLUDE [create a new resource from the Azure portal](../resource-creation-azure-portal.md)] |
| 30 | + |
| 31 | +> [!div class="nextstepaction"] |
| 32 | +> <a href="https://microsoft.qualtrics.com/jfe/form/SV_0Cl5zkG3CnDjq6O?PLanguage=REST API&Pillar=Language&Product=Custom-text-analytics-for-health&Page=quickstart&Section=Create-new-resource" target="_target">I ran into an issue</a> |
| 33 | +
|
| 34 | +## Upload sample data to blob container |
| 35 | + |
| 36 | +[!INCLUDE [Uploading sample data for custom Text Analytics for health](blob-storage-upload.md)] |
| 37 | + |
| 38 | +> [!div class="nextstepaction"] |
| 39 | +> <a href="https://microsoft.qualtrics.com/jfe/form/SV_0Cl5zkG3CnDjq6O?PLanguage=REST API&Pillar=Language&Product=Custom-text-analytics-for-health&Page=quickstart&Section=Upload-sample-data-to-blob-container" target="_target">I ran into an issue</a> |
| 40 | +
|
| 41 | +### Get your resource keys and endpoint |
| 42 | + |
| 43 | +[!INCLUDE [Get keys and endpoint Azure Portal](../get-keys-endpoint-azure.md)] |
| 44 | + |
| 45 | +> [!div class="nextstepaction"] |
| 46 | +> <a href="https://microsoft.qualtrics.com/jfe/form/SV_0Cl5zkG3CnDjq6O?PLanguage=REST API&Pillar=Language&Product=Custom-text-analytics-for-health&Page=quickstart&Section=Get-resource-keys-and-endpoint" target="_target">I ran into an issue</a> |
| 47 | +
|
| 48 | +## Create a custom Text Analytics for health project |
| 49 | + |
| 50 | +Once your resource and storage account are configured, create a new custom Text Analytics for health project. A project is a work area for building your custom ML models based on your data. Your project can only be accessed by you and others who have access to the Language resource being used. |
| 51 | + |
| 52 | +Use the labels file you downloaded from the sample data in the previous step and add it to the body of the following request. |
| 53 | + |
| 54 | +### Trigger import project job |
| 55 | + |
| 56 | +[!INCLUDE [Import a project using the REST API](../rest-api/import-project.md)] |
| 57 | + |
| 58 | +> [!div class="nextstepaction"] |
| 59 | +> <a href="https://microsoft.qualtrics.com/jfe/form/SV_0Cl5zkG3CnDjq6O?PLanguage=REST API&Pillar=Language&Product=Custom-text-analytics-for-health&Page=quickstart&Section=Trigger-import-project-job" target="_target">I ran into an issue</a> |
| 60 | +
|
| 61 | +### Get import job status |
| 62 | + |
| 63 | + [!INCLUDE [get import project status](../rest-api/get-import-status.md)] |
| 64 | + |
| 65 | +> [!div class="nextstepaction"] |
| 66 | +> <a href="https://microsoft.qualtrics.com/jfe/form/SV_0Cl5zkG3CnDjq6O?PLanguage=REST API&Pillar=Language&Product=Custom-text-analytics-for-health&Page=quickstart&Section=Get-import-job-status" target="_target">I ran into an issue</a> |
| 67 | +
|
| 68 | +## Train your model |
| 69 | + |
| 70 | +Typically after you create a project, you go ahead and start labeling the documents you have in the container connected to your project. For this quickstart, you have imported a sample tagged dataset and initialized your project with the sample JSON tags file. |
| 71 | + |
| 72 | +### Start training job |
| 73 | + |
| 74 | +After your project has been imported, you can start training your model. |
| 75 | + |
| 76 | +[!INCLUDE [train model](../rest-api/train-model.md)] |
| 77 | + |
| 78 | +> [!div class="nextstepaction"] |
| 79 | +> <a href="https://microsoft.qualtrics.com/jfe/form/SV_0Cl5zkG3CnDjq6O?PLanguage=REST API&Pillar=Language&Product=Custom-text-analytics-for-health&Page=quickstart&Section=Start-training-your-job" target="_target">I ran into an issue</a> |
| 80 | +
|
| 81 | +### Get training job status |
| 82 | + |
| 83 | +Training could take sometime between 10 and 30 minutes for this sample dataset. You can use the following request to keep polling the status of the training job until it is successfully completed. |
| 84 | + |
| 85 | +[!INCLUDE [get training model status](../rest-api/get-training-status.md)] |
| 86 | + |
| 87 | +> [!div class="nextstepaction"] |
| 88 | +> <a href="https://microsoft.qualtrics.com/jfe/form/SV_0Cl5zkG3CnDjq6O?PLanguage=REST API&Pillar=Language&Product=Custom-text-analytics-for-health&Page=quickstart&Section=Get-training-job-status" target="_target">I ran into an issue</a> |
| 89 | +
|
| 90 | +## Deploy your model |
| 91 | + |
| 92 | +Generally after training a model you would review its evaluation details and make improvements if necessary. In this quickstart, you will just deploy your model, and make it available for you to try in Language Studio, or you can call the [prediction API](https://aka.ms/ct-runtime-swagger). |
| 93 | + |
| 94 | +### Start deployment job |
| 95 | + |
| 96 | +[!INCLUDE [deploy model](../rest-api/deploy-model.md)] |
| 97 | + |
| 98 | +> [!div class="nextstepaction"] |
| 99 | +> <a href="https://microsoft.qualtrics.com/jfe/form/SV_0Cl5zkG3CnDjq6O?PLanguage=REST API&Pillar=Language&Product=Custom-text-analytics-for-health&Page=quickstart&Section=Submit-deployment-job" target="_target">I ran into an issue</a> |
| 100 | +
|
| 101 | +### Get deployment job status |
| 102 | + |
| 103 | +[!INCLUDE [get deployment status](../rest-api/get-deployment-status.md)] |
| 104 | + |
| 105 | +> [!div class="nextstepaction"] |
| 106 | +> <a href="https://microsoft.qualtrics.com/jfe/form/SV_0Cl5zkG3CnDjq6O?PLanguage=REST API&Pillar=Language&Product=Custom-text-analytics-for-health&Page=quickstart&Section=Get-deployment-job-status" target="_target">I ran into an issue</a> |
| 107 | +
|
| 108 | +## Make predictions with your trained model |
| 109 | + |
| 110 | +After your model is deployed, you can start using it to extract entities from your text using the [prediction API](https://aka.ms/ct-runtime-swagger). In the sample dataset you downloaded earlier you can find some test documents that you can use in this step. |
| 111 | + |
| 112 | +### Submit a custom Text Analytics for health task |
| 113 | + |
| 114 | +[!INCLUDE [submit a custom Text Analytics for health task using the REST API](../rest-api/submit-task.md)] |
| 115 | + |
| 116 | +> [!div class="nextstepaction"] |
| 117 | +> <a href="https://microsoft.qualtrics.com/jfe/form/SV_0Cl5zkG3CnDjq6O?PLanguage=REST API&Pillar=Language&Product=Custom-text-analytics-for-health&Page=quickstart&Section=Submit-custom-text-analytics-for-health-task" target="_target">I ran into an issue</a> |
| 118 | +
|
| 119 | +### Get task results |
| 120 | + |
| 121 | +[!INCLUDE [get custom Text Analytics for health task results](../rest-api/get-results.md)] |
| 122 | + |
| 123 | +> [!div class="nextstepaction"] |
| 124 | +> <a href="https://microsoft.qualtrics.com/jfe/form/SV_0Cl5zkG3CnDjq6O?PLanguage=REST API&Pillar=Language&Product=Custom-text-analytics-for-health&Page=quickstart&Section=Get-task-results" target="_target">I ran into an issue</a> |
| 125 | +
|
| 126 | +## Clean up resources |
| 127 | + |
| 128 | +[!INCLUDE [Delete project using the REST API](../rest-api/delete-project.md)] |
| 129 | + |
| 130 | +> [!div class="nextstepaction"] |
| 131 | +> <a href="https://microsoft.qualtrics.com/jfe/form/SV_0Cl5zkG3CnDjq6O?PLanguage=REST API&Pillar=Language&Product=Custom-text-analytics-for-health&Page=quickstart&Section=Clean-up-resources" target="_target">I ran into an issue</a> |
0 commit comments