Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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
```