Skip to content

Commit 89f2170

Browse files
Fix variable typo
The script would not run because of a typo with "languageEndpoint"
1 parent e53d223 commit 89f2170

File tree

1 file changed

+2
-2
lines changed
  • articles/cognitive-services/language-service/sentiment-opinion-mining/includes/quickstarts

1 file changed

+2
-2
lines changed

articles/cognitive-services/language-service/sentiment-opinion-mining/includes/quickstarts/nodejs-sdk.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const languageKey = process.env.LANGUAGE_KEY;
6868
const languageEndpoint = process.env.LANGUAGE_ENDPOINT;
6969

7070
// Authenticate the client with your key and endpoint.
71-
const textAnalyticsClient = new TextAnalyticsClient(LanguageEndpoint, new AzureKeyCredential(languageKey));
71+
const textAnalyticsClient = new TextAnalyticsClient(languageEndpoint, new AzureKeyCredential(languageKey));
7272

7373
// Example method for detecting sentiment and opinions in text.
7474
async function sentimentAnalysisWithOpinionMining(client){
@@ -162,4 +162,4 @@ sentimentAnalysisWithOpinionMining(textAnalyticsClient);
162162
* [Sentiment analysis and opinion mining language support](../../language-support.md)
163163
* [How to call the API](../../how-to/call-api.md)
164164
* [Reference documentation](/javascript/api/overview/azure/ai-text-analytics-readme?preserve-view=true&view=azure-node-latest)
165-
* [Additional samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/textanalytics/ai-text-analytics/samples)
165+
* [Additional samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/textanalytics/ai-text-analytics/samples)

0 commit comments

Comments
 (0)