Google Cloud’s Post

View organization page for Google Cloud, graphic

2,398,716 followers

Sentiment analysis is a powerful tool that uses NLP to uncover the underlying emotions (🥰, 😡, 😐) within text such as customer reviews. Learn how to use ML.GENERATE_TEXT function to directly utilize LLMs from Vertex AI within your SQL queries to analyze text in a BigQuery table → https://goo.gle/4cH1vvC

  • No alternative text description for this image
Peter Keyse

Gen AI apps developer

1w

Apps-Script in a Google Sheet: function Do_Get_Emotions(nlpText) { doEmotionNlp = Get('doEmotionNlp')   if (!doEmotionNlp) { return; }   emotionsModel = Get('EmotionsModel')   if (emotionsModel) { SelectGPTApi(), model = 'gpt-4o' }   else { SelectTogetherApi(), model = 'meta-llama/Llama-3-70b-chat-hf' }     //START PROMPT ENG   emotions = 'Emotions are complex psychological and physiological states involving personal feelings, physical reactions, and behavioral expressions, triggered by specific stimuli or situations. They play a crucial role in decision-making and social interactions, influenced by how we perceive and interpret events.'   prompt = 'Perform a Sentiment Analysis and extract any emotions found in this text: ' + nlpText + '. Ensure that each extracted emotion conforms to this definition of an emotion: ' + emotions + '\nAnalise the PROMPT and RESPONSE seperately. Categorise these sentiments and emotions as Positive, Neutral or Negative. Present the results without additional information by PROMPT and RESPONSE as a list with each item on a new line seperated by a comma and space showing Category, the Emotion name and Sentiment and assign a value to the Sentiment with 2 decimal places.   //END PROMPT ENG

Mana Sidhu

ASO Strategist | Mobile App Marketing | Enhancing App Rankings and User Engagement | Influencer Marketing | App Store Optimization

1w

Gain insights and stay updated about the latest AI certifications and trends. Join us on LinkedIn https://www.linkedin.com/groups/12966422

Like
Reply
Nicholas Decker

Technical Account Manager @ GoDaddy | Cybersecurity Enthusiast | System Administrator

1w

But do you have one for oogabooga wallstreetbets language so I can get rich and eat tendies?

Like
Reply
Rajkumar Sinha

Project management||B2B||Data Analytics||Claude 3||Big data||Solidworks||Catia|| Product Manager @ Robomanthan | Generative Neural Networks, Data Mining

1w

I'll keep this in mind

Like
Reply
Ghulam Mustafa

Data Analyst| AI Chatbot developer |

1w

Very informative

Like
Reply
Janaina Poeta Frey

Sparkling innovation with Startups and Scaleups - powered by Google

1w
Like
Reply
See more comments

To view or add a comment, sign in

Explore topics