Giter Site home page Giter Site logo

sentiment's Introduction

Sentiment analysis docker image for simplified setup

Install

Pull images

git clone https://github.com/LiveHelperChat/sentiment && cd sentiment
docker-compose -f docker-compose.yml pull
wget https://livehelperchat.com/var/deep.tgz
tar zxfv deep.tgz
rm -f deep.tgz

Run one time

docker-compose -f docker-compose.yml up

Run as a service

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

Testing

curl -X POST "http://localhost:5000/model" -H "accept: application/json" -H "Content-Type: application/json" -d "{\"x\":[\"all went no so good, but could have been better\"]}"

For Live Helper Chat configuration read https://doc.livehelperchat.com/docs/bot/sentiment-analysis

sentiment's People

Contributors

remdex avatar

Watchers

 avatar  avatar  avatar  avatar

sentiment's Issues

RuntimeError: Python version >= 3.8 required

Hi, i ve got this error: "RuntimeError: Python version >= 3.8 required"

im tryng to do:
git clone https://github.com/LiveHelperChat/sentiment && cd sentiment
docker-compose -f docker-compose.yml pull
wget https://livehelperchat.com/var/deep.tgz
tar zxfv deep.tgz
rm -f deep.tgz

but when i try to do docker-compose -f docker-compose.yml up

i see this in the terminal:

Traceback (most recent call last):
File "setup.py", line 85, in
**read_requirements()
File "/base/venv/lib/python3.7/site-packages/setuptools/init.py", line 108, in setup
return distutils.core.setup(**attrs)
File "/base/venv/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/base/venv/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/base/venv/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/base/venv/lib/python3.7/site-packages/setuptools/dist.py", line 1221, in run_command
super().run_command(command)
File "/base/venv/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/base/venv/lib/python3.7/site-packages/setuptools/command/develop.py", line 34, in run
self.install_for_development()
File "/base/venv/lib/python3.7/site-packages/setuptools/command/develop.py", line 130, in install_for_development
self.process_distribution(None, self.dist, not self.no_deps)
File "/base/venv/lib/python3.7/site-packages/setuptools/command/easy_install.py", line 755, in process_distribution
[requirement], self.local_index, self.easy_install
File "/base/venv/lib/python3.7/site-packages/pkg_resources/init.py", line 816, in resolve
req, best, replace_conflicting, env, installer, required_by, to_activate
File "/base/venv/lib/python3.7/site-packages/pkg_resources/init.py", line 852, in _resolve_dist
req, ws, installer, replace_conflicting=replace_conflicting
File "/base/venv/lib/python3.7/site-packages/pkg_resources/init.py", line 1123, in best_match
return self.obtain(req, installer)
File "/base/venv/lib/python3.7/site-packages/pkg_resources/init.py", line 1135, in obtain
return installer(requirement)
File "/base/venv/lib/python3.7/site-packages/setuptools/command/easy_install.py", line 681, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/base/venv/lib/python3.7/site-packages/setuptools/command/easy_install.py", line 707, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/base/venv/lib/python3.7/site-packages/setuptools/command/easy_install.py", line 900, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/base/venv/lib/python3.7/site-packages/setuptools/command/easy_install.py", line 1174, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/base/venv/lib/python3.7/site-packages/setuptools/command/easy_install.py", line 1158, in run_setup
run_setup(setup_script, args)
File "/base/venv/lib/python3.7/site-packages/setuptools/sandbox.py", line 262, in run_setup
raise
File "/usr/local/lib/python3.7/contextlib.py", line 130, in exit
self.gen.throw(type, value, traceback)
File "/base/venv/lib/python3.7/site-packages/setuptools/sandbox.py", line 198, in setup_context
yield
File "/usr/local/lib/python3.7/contextlib.py", line 130, in exit
self.gen.throw(type, value, traceback)
File "/base/venv/lib/python3.7/site-packages/setuptools/sandbox.py", line 169, in save_modules
saved_exc.resume()
File "/base/venv/lib/python3.7/site-packages/setuptools/sandbox.py", line 143, in resume
raise exc.with_traceback(self._tb)
File "/base/venv/lib/python3.7/site-packages/setuptools/sandbox.py", line 156, in save_modules
yield saved
File "/base/venv/lib/python3.7/site-packages/setuptools/sandbox.py", line 198, in setup_context
yield
File "/base/venv/lib/python3.7/site-packages/setuptools/sandbox.py", line 259, in run_setup
_execfile(setup_script, ns)
File "/base/venv/lib/python3.7/site-packages/setuptools/sandbox.py", line 46, in _execfile
exec(code, globals, locals)
File "/tmp/easy_install-b2k3k5mf/scipy-1.9.3/setup.py", line 33, in
if '://' in req:
RuntimeError: Python version >= 3.8 required.
ERROR: Service 'web' failed to build: The command '/bin/sh -c git clone https://github.com/deepmipt/DeepPavlov.git && cd DeepPavlov && git checkout $COMMIT && python setup.py develop && python -c 'import deeppavlov.models' && rm -rf /root/.cache' returned a non-zero code: 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.