Skip to content

Latest commit

 

History

25 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Azure Sentiments

Using Azure Cognitive Services API to identify sentiments within a text.

# input
'Feeling happy'

# output
😁 positive: 0.96% 
😐 neutral: 0.03%
☹️ negative: 0.01%

Infrastructure Setup

location='eastus2'
group='rg-sentiment'

# Create resources
az group create -l $location -n $group
az cognitiveservices account create --kind textanalytics -n 'cog-name' -l $location -g $group --sku F0

# Get the endpoint
az cognitiveservices account list --query [0].endpoint -o tsv

Running it

# prepare the env
cp example.env .env

# run it
yarn install
yarn dev

About

Using Azure Cognitive Services API to identify sentiments within a text.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages