Skip to content

Commit ac8c676

Browse files
authored
Merge pull request #107527 from aahill/ta-march-qs
[CogSvcs] Small java updates
2 parents f0a47d3 + d8185fb commit ac8c676

File tree

1 file changed

+5
-7
lines changed
  • articles/cognitive-services/text-analytics/includes/quickstarts

1 file changed

+5
-7
lines changed

articles/cognitive-services/text-analytics/includes/quickstarts/java-sdk.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ms.reviewer: tasharm, assafi, sumeh
1313

1414
<a name="HOLTop"></a>
1515

16-
[Reference documentation](https://aka.ms/azsdk-java-textanalytics-ref-docs) | [Library source code](https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/textanalytics/azure-ai-textanalytics) | [Package](https://search.maven.org/artifact/com.azure/azure-ai-textanalytics/1.0.0-beta.3/jar) | [Samples](https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/textanalytics/azure-ai-textanalytics/src/samples/java/com/azure/ai/textanalytics)
16+
[Reference documentation](https://aka.ms/azsdk-java-textanalytics-ref-docs) | [Library source code](https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/textanalytics/azure-ai-textanalytics) | [Package](https://mvnrepository.com/artifact/com.azure/azure-ai-textanalytics/1.0.0-beta.3) | [Samples](https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/textanalytics/azure-ai-textanalytics/src/samples/java/com/azure/ai/textanalytics)
1717

1818
## Prerequisites
1919

@@ -25,9 +25,9 @@ ms.reviewer: tasharm, assafi, sumeh
2525

2626
## Setting up
2727

28-
### Create a new Maven project
28+
### Add the client library
2929

30-
Add the following text analytics dependency to your project. This version of the dependency uses version `3.0-preview` of the Text Analytics API.
30+
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/1.0.0-beta.3) online.
3131

3232
```xml
3333
<dependencies>
@@ -39,8 +39,6 @@ Add the following text analytics dependency to your project. This version of the
3939
</dependencies>
4040
```
4141

42-
Create a new java file in the following directory: `\src\main\java`.
43-
4442
> [!TIP]
4543
> Want to view the whole quickstart code file at once? You can find it [on GitHub](https://github.com/Azure-Samples/cognitive-services-quickstart-code/blob/master/java/TextAnalytics/TextAnalyticsSamples.java), which contains the code examples in this quickstart.
4644
@@ -67,7 +65,7 @@ Add the following main method to the class. You will define the methods called h
6765

6866
```java
6967
public static void main(String[] args) {
70-
68+
//You will create these methods later in the quickstart.
7169
TextAnalyticsClient client = authenticateClient(KEY, ENDPOINT);
7270

7371
sentimentAnalysisExample(client);
@@ -94,7 +92,7 @@ The Text Analytics client is a `TextAnalyticsClient` object that authenticates t
9492

9593
## Authenticate the client
9694

97-
Create a method to instantiate the `TextAnalyticsClient` object with your `KEY` AND `ENDPOINT` created above.
95+
Create a method to instantiate the `TextAnalyticsClient` object with the key and endpoint for your Text Analytics resource.
9896

9997
```java
10098
static TextAnalyticsClient authenticateClient(String key, String endpoint) {

0 commit comments

Comments
 (0)