Skip to content

epomatti/sentiment-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •