From 690117ede0799f30ad78b2bbf22a9334c2053831 Mon Sep 17 00:00:00 2001 From: "Jiao Di (MSFT)" <80496810+v-jiaodi@users.noreply.github.com> Date: Fri, 4 Jun 2021 08:41:43 +0800 Subject: [PATCH] Fix Ai Text Analytics Readme Issue (#15508) --- sdk/textanalytics/ai-text-analytics/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/textanalytics/ai-text-analytics/README.md b/sdk/textanalytics/ai-text-analytics/README.md index c18094daf23c..fb4b89bae943 100644 --- a/sdk/textanalytics/ai-text-analytics/README.md +++ b/sdk/textanalytics/ai-text-analytics/README.md @@ -250,10 +250,10 @@ main(); There is a separate endpoint and operation for recognizing Personally Identifiable Information (PII) in text such as Social Security Numbers, bank account information, credit card numbers, etc. Its usage is very similar to the standard entity recognition above: ```javascript -const { TextAnalyticsClient, TextAnalyticsApiKeyCredential } = require("@azure/ai-text-analytics"); +const { TextAnalyticsClient, AzureKeyCredential } = require("@azure/ai-text-analytics"); const client = new TextAnalyticsClient( "", - new TextAnalyticsApiKeyCredential("") + new AzureKeyCredential("") ); const documents = [ "The employee's SSN is 555-55-5555.",