question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TextSentiment .setOpinionMining not returning opinion mining results

See original GitHub issue

Describe the bug

Using .setOpinionMining(True) in Pyspark does not return opinion mining results on Azure Synapse Analytics

To Reproduce

  1. Using Pyspark, create the object e.g. (TextSentiment().setOpinionMining(True)…etc.
  2. Run the results with a loaded dataframe
  3. Results is indifferent from not setting the Opinion Mining

Expected behavior

Resulted JSON to include opinion mining results .i.e. “targets” and “assessments”.

Also tested comparable lib (azure.ai) and Rest API calls (v3 and v22.05.01). All 3 are returning opinion mining results when the opinionMining flag/key is included.

Info (please complete the following information):

  • SynapseML Version: [e.g. v0.17]
  • Spark Version [e.g. 2.4.3]
  • Spark Platform [e.g. Databricks]

** Stacktrace**

Please post the stacktrace here if applicable

If the bug pertains to a specific feature please tag the appropriate CODEOWNER for better visibility

Additional context Add any other context about the problem here.

AB#1890098

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
serena-ruancommented, Jul 25, 2022

Hi @kenshinee You need to create a spark 3.2 pool and add above config in the first cell of your code to install SynapseML v0.10.0. We will add it into Synapse Analytics as default at some point, but at this time you need to install it yourself 😃

1reaction
mhamilton723commented, Jul 22, 2022

Thank you! this is a known issue and it should be fixed in v0.10.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to perform sentiment analysis and opinion mining
Using the sentiment analysis and opinion mining features synchronously is stateless. No data is stored in your account, and results are returned ...
Read more >
opinion mining not working as expected. · Issue #21193 - GitHub
Hi @ShivanshuPurohit, thanks for your issue. With your code, I'm able to reproduce that no opinion mining results are generated from that input....
Read more >
Solved: PowerBI- Text Analytics (sentiment/opinion mining)...
I have: created a fresh file and dashboard, with a new Azure resource- both files are now returning the same results (running on...
Read more >
Sentiment Analysis and Opinion Mining - Computer Science
accurate results. We simply used our Opinion Parser system to analyze positive and negative opinions about each movie with no additional.
Read more >
Guide to Text Mining with Sentiment Analysis
Text mining with sentiment analysis offers powerful data analysis insights and dynamic results, no matter the type of text you need to analyze....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found