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

https://github.com/livehelperchat/sentiment-per-message

Sentiment per message docker image
https://github.com/livehelperchat/sentiment-per-message

Last synced: 4 months ago
JSON representation

Sentiment per message docker image

Awesome Lists containing this project

README

          

# Sentiment per message

Sentiment analysis docker image for simplified setup. This docker image is used for sentiment analysis per message.

> https://doc.livehelperchat.com/docs/bot/sentiment-analysis-per-message

# Install

Pull images

```shell
git clone https://github.com/LiveHelperChat/sentiment-per-message && cd sentiment-per-message
docker-compose -f docker-compose.yml pull
wget https://livehelperchat.com/var/deep_sentence_v2.tgz
tar zxfv deep_sentence.tgz
rm -f deep_sentence.tgz
```

Run one time

```
docker-compose -f docker-compose.yml up
```

Run as a service

```
docker-compose -f docker-compose.yml up -d
```

Build

```shell
docker-compose -f docker-compose.yml build
# OR
docker-compose -f docker-compose.yml --no-cache
```

Testing

```shell
curl -X 'POST' \
'http://127.0.0.1:5058/model' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"sentences": [
"I'\''m sad"
]
}'
```

You cal also point your browser to test directly

> http://127.0.0.1:5058/docs