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
Use this quickstart to create a language detection application with the client library for .NET. In the following example, you will create a C# application that can identify the language a text sample was written in.
12
+
Use this quickstart to create a language detection application with the client library for .NET. In the following example, you create a C# application that can identify the language a text sample was written in.
13
13
14
14
[!INCLUDE [Use Language Studio](../../../includes/use-language-studio.md)]
15
15
@@ -18,18 +18,18 @@ Use this quickstart to create a language detection application with the client l
18
18
19
19
* Azure subscription - [Create one for free](https://azure.microsoft.com/free/cognitive-services)
20
20
* The [Visual Studio IDE](https://visualstudio.microsoft.com/vs/)
21
-
* Once you have your Azure subscription, <ahref="https://portal.azure.com/#create/Microsoft.CognitiveServicesTextAnalytics"title="Create a Language resource"target="_blank">create a Language resource </a> in the Azure portal to get your key and endpoint. After it deploys, select **Go to resource**.
22
-
* You will need the key and endpoint from the resource you create to connect your application to the API. You'll paste your key and endpoint into the code below later in the quickstart.
21
+
* Once you have your Azure subscription, <ahref="https://portal.azure.com/#create/Microsoft.CognitiveServicesTextAnalytics"title="Create a Language resource"target="_blank">create a Language resource </a> in the Azure portal to get your key and endpoint. After it deploys, select **Go to resource**.
22
+
* You need the key and endpoint from the resource you create to connect your application to the API. You paste your key and endpoint into the code later in the quickstart.
23
23
* You can use the free pricing tier (`Free F0`) to try the service, and upgrade later to a paid tier for production.
24
-
* To use the Analyze feature, you will need a Language resource with the standard (S) pricing tier.
24
+
* To use the Analyze feature, you need a Language resource with the standard (S) pricing tier.
25
25
26
26
27
27
28
28
## Setting up
29
29
30
30
### Create a new .NET Core application
31
31
32
-
Using the Visual Studio IDE, create a new .NET Core console app. This will create a "Hello World" project with a single C# source file: *program.cs*.
32
+
Using the Visual Studio IDE, create a new .NET Core console app. This creates a "Hello World" project with a single C# source file: *program.cs*.
33
33
34
34
Install the client library by right-clicking on the solution in the **Solution Explorer** and selecting **Manage NuGet Packages**. In the package manager that opens select **Browse** and search for `Azure.AI.TextAnalytics`. Select version `5.2.0`, and then **Install**. You can also use the [Package Manager Console](/nuget/consume-packages/install-use-packages-powershell#find-and-install-a-package).
Use this quickstart to create a language detection application with the client library for Java. In the following example, you will create a Java application that can identify the language a text sample was written in.
13
+
Use this quickstart to create a language detection application with the client library for Java. In the following example, you create a Java application that can identify the language a text sample was written in.
14
14
15
15
[!INCLUDE [Use Language Studio](../../../includes/use-language-studio.md)]
16
16
@@ -20,9 +20,9 @@ Use this quickstart to create a language detection application with the client l
20
20
* Azure subscription - [Create one for free](https://azure.microsoft.com/free/cognitive-services)
21
21
*[Java Development Kit](https://www.oracle.com/technetwork/java/javase/downloads/index.html) (JDK) with version 8 or above
22
22
* Once you have your Azure subscription, <ahref="https://portal.azure.com/#create/Microsoft.CognitiveServicesTextAnalytics"title="Create a Language resource"target="_blank">create a Language resource </a> in the Azure portal to get your key and endpoint. After it deploys, select **Go to resource**.
23
-
* You will need the key and endpoint from the resource you create to connect your application to the API. You'll paste your key and endpoint into the code below later in the quickstart.
23
+
* You need the key and endpoint from the resource you create to connect your application to the API. You paste your key and endpoint into the code below later in the quickstart.
24
24
* You can use the free pricing tier (`Free F0`) to try the service, and upgrade later to a paid tier for production.
25
-
* To use the Analyze feature, you will need a Language resource with the standard (S) pricing tier.
25
+
* To use the Analyze feature, you need a Language resource with the standard (S) pricing tier.
Use this quickstart to create a language detection application with the client library for Node.js. In the following example, you will create a JavaScript application that can identify the language a text sample was written in.
14
+
Use this quickstart to create a language detection application with the client library for Node.js. In the following example, you create a JavaScript application that can identify the language a text sample was written in.
15
15
16
16
[!INCLUDE [Use Language Studio](../../../includes/use-language-studio.md)]
17
17
@@ -21,9 +21,9 @@ Use this quickstart to create a language detection application with the client l
21
21
* Azure subscription - [Create one for free](https://azure.microsoft.com/free/cognitive-services)
22
22
*[Node.js](https://nodejs.org/) v14 LTS or later
23
23
* Once you have your Azure subscription, <ahref="https://portal.azure.com/#create/Microsoft.CognitiveServicesTextAnalytics"title="Create a Language resource"target="_blank">create a Language resource </a> in the Azure portal to get your key and endpoint. After it deploys, select **Go to resource**.
24
-
* You will need the key and endpoint from the resource you create to connect your application to the API. You'll paste your key and endpoint into the code below later in the quickstart.
24
+
* You need the key and endpoint from the resource you create to connect your application to the API. You paste your key and endpoint into the code below later in the quickstart.
25
25
* You can use the free pricing tier (`Free F0`) to try the service, and upgrade later to a paid tier for production.
26
-
* To use the Analyze feature, you will need a Language resource with the standard (S) pricing tier.
26
+
* To use the Analyze feature, you need a Language resource with the standard (S) pricing tier.
27
27
28
28
29
29
@@ -64,17 +64,18 @@ Open the file and copy the below code. Remember to replace the `key` variable wi
Use this quickstart to create a language detection application with the client library for Python. In the following example, you will create a Python application that can identify the language a text sample was written in.
12
+
Use this quickstart to create a language detection application with the client library for Python. In the following example, you create a Python application that can identify the language a text sample was written in.
13
13
14
14
[!INCLUDE [Use Language Studio](../../../includes/use-language-studio.md)]
15
15
@@ -19,9 +19,9 @@ Use this quickstart to create a language detection application with the client l
19
19
* Azure subscription - [Create one for free](https://azure.microsoft.com/free/cognitive-services)
20
20
*[Python 3.8 or later](https://www.python.org/)
21
21
* Once you have your Azure subscription, <ahref="https://portal.azure.com/#create/Microsoft.CognitiveServicesTextAnalytics"title="Create a Language resource"target="_blank">create a Language resource </a> in the Azure portal to get your key and endpoint. After it deploys, select **Go to resource**.
22
-
* You will need the key and endpoint from the resource you create to connect your application to the API. You'll paste your key and endpoint into the code below later in the quickstart.
22
+
* You need the key and endpoint from the resource you create to connect your application to the API. You paste your key and endpoint into the code below later in the quickstart.
23
23
* You can use the free pricing tier (`Free F0`) to try the service, and upgrade later to a paid tier for production.
24
-
* To use the Analyze feature, you will need a Language resource with the standard (S) pricing tier.
24
+
* To use the Analyze feature, you need a Language resource with the standard (S) pricing tier.
25
25
26
26
27
27
@@ -44,17 +44,19 @@ Create a new Python file and copy the below code. Remember to replace the `key`
44
44
[!INCLUDE [find the key and endpoint for a resource](../../../includes/find-azure-resource-info.md)]
45
45
46
46
```python
47
-
key ="paste-your-key-here"
48
-
endpoint ="paste-your-endpoint-here"
47
+
48
+
# This example requires environment variables named "LANGUAGE_KEY" and "LANGUAGE_ENDPOINT"
0 commit comments