Google Cloud’s Post

View organization page for Google Cloud, graphic

2,527,397 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

3mo

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

2mo

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

Dog Father 🐶 | Aspiring SRE | System Administrator

3mo

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

Like
Reply
Rajkumar Sinha

Software Test engineer

3mo

I'll keep this in mind

Like
Reply
Ghulam Mustafa

Data Analyst & AI Chatbot developer | Python Developer

3mo

Very informative

Like
Reply
Janaina Poeta Frey

Sparkling innovation with Startups and Scaleups | Healthcare & Life Sciences Community Lead

3mo
Like
Reply
See more comments

To view or add a comment, sign in

Explore topics