azure-docs-sdk-node icon indicating copy to clipboard operation
azure-docs-sdk-node copied to clipboard

text-analytics-for-health: outdated example code

Open movAX13h opened this issue 2 years ago • 0 comments

I'm not sure if this is the right place to report this issue - sorry if it isn't.

This page shows invalid and outdated source code in the JavaScript example: https://learn.microsoft.com/de-de/azure/ai-services/language-service/text-analytics-for-health/quickstart?tabs=windows&pivots=programming-language-javascript

image

From top to bottom:

  • Should be TextAnalyticsClient for the client class name.
  • beginAnalyzeBatch does not exist anymore; can be replaced with beginAnalyzeHealthcareEntities(documents, 'en') thus the action const above can be removed
  • modifiedOn is now lastModifiedOn

movAX13h avatar Sep 07 '23 15:09 movAX13h