TypeError: request() got an unexpected keyword argument 'show_opinion_mining'

Yue Wu 106 Reputation points
2020-11-05T23:41:33.197+00:00

I am using the Azure Text Analytics client library for Python, but it seems like I am not able to use the opinion mining feature.

For the code:
text_analytics_client.analyze_sentiment(documents, show_opinion_mining=True)

it returns the error:
TypeError: request() got an unexpected keyword argument 'show_opinion_mining'

How can I get opinion mining when using the library?

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,891 questions
0 comments No comments
{count} vote

Accepted answer
  1. Yue Wu 106 Reputation points
    2020-11-06T00:16:26.407+00:00

    I figured out the problem, need to pip install the version 3.1 preview by "pip install azure-ai-textanalytics --pre"

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.