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 key phrase extraction application with the client library for .NET. In the following example, you will create a C# application that can identify key words and phrases found in text.
13
-
14
-
[!INCLUDE [Use Language Studio](../../../includes/use-language-studio.md)]
12
+
Use this quickstart to create a key phrase extraction application with the client library for .NET. In the following example, you create a C# application that can identify key words and phrases found in text.
15
13
16
14
17
15
## Prerequisites
18
16
19
17
* Azure subscription - [Create one for free](https://azure.microsoft.com/free/cognitive-services)
20
18
* 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.
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.
25
-
26
19
27
20
28
21
## Setting up
29
22
30
-
### Create a new .NET Core application
23
+
[!INCLUDE [Create an Azure resource](../../../includes/create-resource.md)]
31
24
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*.
33
25
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).
35
26
27
+
[!INCLUDE [Get your key and endpoint](../../../includes/get-key-endpoint.md)]
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*.
40
37
41
-
Copy the following code into your *program.cs* file. Remember to replace the `key` variable with the key for your resource, and replace the `endpoint` variable with the endpoint for your resource. Then run the code.
38
+
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).
42
39
43
-
[!INCLUDE [find the key and endpoint for a resource](../../../includes/find-azure-resource-info.md)]
40
+
41
+
## Code example
42
+
43
+
Copy the following code into your *program.cs* file. Then run the code.
Use this quickstart to create a key phrase extraction application with the client library for Java. In the following example, you will create a Java application that can identify key words and phrases found in text.
13
+
Use this quickstart to create a key phrase extraction application with the client library for Java. In the following example, you create a Java application that can identify key words and phrases found in text.
14
14
15
-
[!INCLUDE [Use Language Studio](../../../includes/use-language-studio.md)]
16
15
17
16
## Prerequisites
18
17
19
18
* Azure subscription - [Create one for free](https://azure.microsoft.com/free/cognitive-services)
20
19
*[Java Development Kit](https://www.oracle.com/technetwork/java/javase/downloads/index.html) (JDK) with version 8 or above
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.
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.
25
-
26
20
27
21
28
22
## Setting up
29
23
24
+
[!INCLUDE [Create an Azure resource](../../../includes/create-resource.md)]
25
+
26
+
27
+
28
+
[!INCLUDE [Get your key and endpoint](../../../includes/get-key-endpoint.md)]
Create a Maven project in your preferred IDE or development environment. Then add the following dependency to your project's *pom.xml* file. You can find the implementation syntax [for other build tools](https://mvnrepository.com/artifact/com.azure/azure-ai-textanalytics/5.2.0) online.
@@ -41,15 +46,9 @@ Create a Maven project in your preferred IDE or development environment. Then ad
41
46
</dependencies>
42
47
```
43
48
44
-
45
-
46
-
47
49
## Code example
48
50
49
-
50
-
Create a Java file named `Example.java`. Open the file and copy the below code. Remember to replace the `key` variable with the key for your resource, and replace the `endpoint` variable with the endpoint for your resource. Then run the code.
51
-
52
-
[!INCLUDE [find the key and endpoint for a resource](../../../includes/find-azure-resource-info.md)]
51
+
Create a Java file named `Example.java`. Open the file and copy the below code. Then run the code.
Use this quickstart to create a key phrase extraction application with the client library for Node.js. In the following example, you will create a JavaScript application that can identify key words and phrases found in text.
13
+
Use this quickstart to create a key phrase extraction application with the client library for Node.js. In the following example, you create a JavaScript application that can identify key words and phrases found in text.
14
14
15
-
[!INCLUDE [Use Language Studio](../../../includes/use-language-studio.md)]
16
15
17
16
## Prerequisites
18
17
19
18
* Azure subscription - [Create one for free](https://azure.microsoft.com/free/cognitive-services)
20
19
*[Node.js](https://nodejs.org/) v14 LTS or later
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.
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.
25
-
26
20
27
21
28
22
## Setting up
29
23
24
+
[!INCLUDE [Create an Azure resource](../../../includes/create-resource.md)]
25
+
26
+
27
+
28
+
[!INCLUDE [Get your key and endpoint](../../../includes/get-key-endpoint.md)]
Open the file and copy the below code. Remember to replace the `key` variable with the key for your resource, and replace the `endpoint` variable with the endpoint for your resource. Then run the code.
61
-
62
-
[!INCLUDE [find the key and endpoint for a resource](../../../includes/find-azure-resource-info.md)]
62
+
Open the file and copy the below code. Then run the code.
Use this quickstart to create a key phrase extraction application with the client library for Python. In the following example, you will create a Python application that can identify key words and phrases found in text.
11
+
Use this quickstart to create a key phrase extraction application with the client library for Python. In the following example, you create a Python application that can identify key words and phrases found in text.
12
12
13
-
[!INCLUDE [Use Language Studio](../../../includes/use-language-studio.md)]
14
13
15
14
## Prerequisites
16
15
17
16
* Azure subscription - [Create one for free](https://azure.microsoft.com/free/cognitive-services)
18
17
*[Python 3.8 or later](https://www.python.org/)
19
-
* 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**.
20
-
* 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
-
* You can use the free pricing tier (`Free F0`) to try the service, and upgrade later to a paid tier for production.
22
-
* To use the Analyze feature, you will need a Language resource with the standard (S) pricing tier.
23
-
24
18
25
19
26
20
## Setting up
27
21
22
+
[!INCLUDE [Create an Azure resource](../../../includes/create-resource.md)]
23
+
24
+
25
+
26
+
[!INCLUDE [Get your key and endpoint](../../../includes/get-key-endpoint.md)]
Create a new Python file and copy the below code. Remember to replace the `key` variable with the key for your resource, and replace the `endpoint` variable with the endpoint for your resource. Then run the code.
41
-
42
-
[!INCLUDE [find the key and endpoint for a resource](../../../includes/find-azure-resource-info.md)]
44
+
Create a new Python file and copy the below code. Then run the code.
43
45
44
46
```python
45
-
key ="paste-your-key-here"
46
-
endpoint ="paste-your-endpoint-here"
47
+
# This example requires environment variables named "LANGUAGE_KEY" and "LANGUAGE_ENDPOINT"
0 commit comments