Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/epomatti/sentiment-analysis
Using Azure Cognitive Services API to identify sentiments within a text.
https://github.com/epomatti/sentiment-analysis
artificial-intelligence az-300 azure chai mocha nodejs sentiment-analysis text-analytics
Last synced: 23 days ago
JSON representation
Using Azure Cognitive Services API to identify sentiments within a text.
- Host: GitHub
- URL: https://github.com/epomatti/sentiment-analysis
- Owner: epomatti
- License: mit
- Created: 2019-07-11T12:04:27.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-04-06T14:16:59.000Z (over 2 years ago)
- Last Synced: 2023-03-04T22:18:43.937Z (over 1 year ago)
- Topics: artificial-intelligence, az-300, azure, chai, mocha, nodejs, sentiment-analysis, text-analytics
- Language: JavaScript
- Homepage:
- Size: 33.2 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Azure Sentiments
Using Azure Cognitive Services API to identify sentiments within a text.
```sh
# input
'Feeling happy'# output
đ positive: 0.96%
đ neutral: 0.03%
âšī¸ negative: 0.01%
```### Infrastructure Setup
```sh
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
```sh
# prepare the env
cp example.env .env# run it
yarn install
yarn dev
```