Skip to content

LiveHelperChat/sentiment-per-message

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Sentiment per message docker image

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published