Skip to content

Latest commit

 

History

History
55 lines (40 loc) · 1023 Bytes

README.md

File metadata and controls

55 lines (40 loc) · 1023 Bytes

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

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

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

Testing

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