Skip to content

Commit e6a0850

Browse files
authored
Merge pull request #192337 from aahill/ba-update-2
CORS update
2 parents 8fdc414 + 25ced07 commit e6a0850

File tree

4 files changed

+20
-8
lines changed

4 files changed

+20
-8
lines changed

articles/cognitive-services/language-service/custom-classification/how-to/create-project.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ manager: nitinme
88
ms.service: cognitive-services
99
ms.subservice: language-service
1010
ms.topic: how-to
11-
ms.date: 02/10/2022
11+
ms.date: 03/21/2022
1212
ms.author: aahi
1313
ms.custom: language-service-custom-classification, references_regions, ignite-fall-2021
1414
---
@@ -28,7 +28,7 @@ Before you start using custom text classification, you will need several things:
2828

2929
## Azure resources
3030

31-
Before you start using custom classification, you will need a Azure Language resource. We recommend following the steps below for creating your resource in the Azure portal . Creating a resource in the Azure portal lets you create an Azure storage account at the same time, with all of the required permissions pre-configured. You can also read further in the article to learn how to use a pre-existing resource, and configure it to work with custom text classification.
31+
Before you start using custom classification, you will need an Azure Language resource. We recommend following the steps below for creating your resource in the Azure portal. Creating a resource in the Azure portal lets you create an Azure storage account at the same time, with all of the required permissions pre-configured. You can also read further in the article to learn how to use a pre-existing resource, and configure it to work with custom text classification.
3232

3333
You also will need an Azure storage account where you will upload your `.txt` files that will be used to train a model to classify text.
3434

@@ -42,7 +42,7 @@ You also will need an Azure storage account where you will upload your `.txt` fi
4242

4343
### Create a new resource from Language Studio
4444

45-
If it's your first time logging in, you'll see a window appear in [Language Studio](https://aka.ms/languageStudio) that will let you choose a language resource or create a new one. You can also create a resource by clicking the settings icon in the top-right corner, selecting **Resources**, then clicking **Create a new resource**.
45+
If it's your first time logging in, you'll see a window in [Language Studio](https://aka.ms/languageStudio) that will let you choose a language resource or create a new one. You can also create a resource by clicking the settings icon in the top-right corner, selecting **Resources**, then clicking **Create a new resource**.
4646

4747
> [!IMPORTANT]
4848
> * To use Custom Text Classification, you'll need a Language resource in **West US 2** or **West Europe** with the Standard (**S**) pricing tier.
@@ -128,6 +128,12 @@ To set proper roles on your storage account:
128128

129129
[!INCLUDE [Storage connection note](../includes/storage-account-note.md)]
130130

131+
### Enable CORS for your storage account
132+
133+
Make sure to allow (**GET, PUT, DELETE**) methods when enabling Cross-Origin Resource Sharing (CORS). Make sure to add an asterisk (`*`) to the fields, and add the recommended value of 500 for the maximum age.
134+
135+
:::image type="content" source="../../custom-named-entity-recognition/media/cors.png" alt-text="A screenshot showing how to use CORS for storage accounts." lightbox="../../custom-named-entity-recognition/media/cors.png":::
136+
131137
## Prepare training data
132138

133139
* As a prerequisite for creating a custom text classification project, your training data needs to be uploaded to a blob container in your storage account. You can create and upload training files from Azure directly or through using the Azure Storage Explorer tool. Using Azure Storage Explorer tool allows you to upload more data in less time.
@@ -148,4 +154,4 @@ To set proper roles on your storage account:
148154

149155
## Next steps
150156

151-
After your project is created, you can start [tagging your data](tag-data.md), which will inform your text classification model how to interpret text, and is used for training and evaluation.
157+
After your project is created, you can start [tagging your data](tag-data.md), which will inform your text classification model how to interpret text, and is used for training and evaluation.
101 KB
Loading

articles/cognitive-services/language-service/custom-named-entity-recognition/how-to/create-project.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ manager: nitinme
88
ms.service: cognitive-services
99
ms.subservice: language-service
1010
ms.topic: how-to
11-
ms.date: 02/10/2022
11+
ms.date: 03/21/2022
1212
ms.author: aahi
1313
ms.custom: language-service-custom-ner, references_regions, ignite-fall-2021
1414
---
@@ -29,7 +29,7 @@ You should have an idea of the [project schema](design-schema.md) you will use f
2929

3030
## Azure resources
3131

32-
Before you start using custom NER, you will need a Azure Language resource. We recommend the steps in the [quickstart](../quickstart.md) for creating one in the Azure portal. Creating a resource in the Azure portal lets you create an Azure storage account at the same time, with all of the required permissions pre-configured. You can also read further in the article to learn how to use a pre-existing resource, and configure it to work with custom NER.
32+
Before you start using custom NER, you will need an Azure Language resource. We recommend the steps in the [quickstart](../quickstart.md) for creating one in the Azure portal. Creating a resource in the Azure portal lets you create an Azure storage account at the same time, with all of the required permissions pre-configured. You can also read further in the article to learn how to use a pre-existing resource, and configure it to work with custom NER.
3333

3434
# [Azure portal](#tab/portal)
3535

@@ -39,7 +39,7 @@ Before you start using custom NER, you will need a Azure Language resource. We r
3939

4040
### Create a new resource from Language Studio
4141

42-
If it's your first time logging in, you'll see a window appear in [Language Studio](https://aka.ms/languageStudio) that will let you choose a language resource or create a new one. You can also create a resource by clicking the settings icon in the top-right corner, selecting **Resources**, then clicking **Create a new resource**.
42+
If it's your first time logging in, you'll see a window in [Language Studio](https://aka.ms/languageStudio) that will let you choose a language resource or create a new one. You can also create a resource by clicking the settings icon in the top-right corner, selecting **Resources**, then clicking **Create a new resource**.
4343

4444
> [!IMPORTANT]
4545
> * To use Custom NER, you'll need a Language resource in **West US 2** or **West Europe** with the Standard (**S**) pricing tier.
@@ -140,6 +140,12 @@ To set proper roles on your storage account:
140140

141141
For information on authorizing access to your Azure blob storage account and data, see [Authorize access to data in Azure storage](../../../../storage/common/authorize-data-access.md?toc=%2fazure%2fstorage%2fblobs%2ftoc.json).
142142

143+
### Enable CORS for your storage account
144+
145+
Make sure to allow (**GET, PUT, DELETE**) methods when enabling Cross-Origin Resource Sharing (CORS). Then, add an asterisk (`*`) to the fields and add the recommended value of 500 for the maximum age.
146+
147+
:::image type="content" source="../media/cors.png" alt-text="A screenshot showing how to use CORS for storage accounts." lightbox="../media/cors.png":::
148+
143149
## Prepare training data
144150

145151
* As a prerequisite for creating a custom NER project, your training data needs to be uploaded to a blob container in your storage account. You can create and upload training files from Azure directly or through using the Azure Storage Explorer tool. Using Azure Storage Explorer tool allows you to upload more data in less time.
@@ -164,4 +170,4 @@ Review the data you entered and select **Create Project**.
164170

165171
## Next steps
166172

167-
After your project is created, you can start [tagging your data](tag-data.md), which will inform your entity extraction model how to interpret text, and is used for training and evaluation.
173+
After your project is created, you can start [tagging your data](tag-data.md), which will inform your entity extraction model how to interpret text, and is used for training and evaluation.
101 KB
Loading

0 commit comments

Comments
 (0)