azure.ai.textanalytics not resolved in Machine Learning Studio

KA 76 Reputation points
2022-04-25T11:23:02.98+00:00

Hello,
I am using a Python notebook in the Machine Learning Studio for extracting Health Info from a given text.
However, the Machine Learning Studio refuses to recognize the below line of code:

from azure.ai.textanalytics import TextAnalyticsClient

The error received is as below:

ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-4-54158a600368> in <module>
      1 from azure.core.credentials import AzureKeyCredential
----> 2 from azure.ai.textanalytics import TextAnalyticsClient
      3 
      4 
      5 credential = AzureKeyCredential("***************************")

ModuleNotFoundError: No module named 'azure.ai'

Does anyone has an idea what to do here?

Thanks

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
2,714 questions
Azure Health Data Services
Azure Health Data Services
An Azure offering that provides a suite of purpose-built technologies for protected health information in the cloud.
155 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Azadeh 21 Reputation points
    2022-05-02T14:44:42.647+00:00

    You should check the path, this happened to me when I install packages from local but run it from local machine.