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