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
- Host: GitHub
- URL: https://github.com/livehelperchat/sentiment-per-message
- Owner: LiveHelperChat
- License: mit
- Created: 2022-04-27T06:30:41.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-10-03T11:38:35.000Z (over 1 year ago)
- Last Synced: 2025-09-14T00:33:13.008Z (9 months ago)
- Language: Dockerfile
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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