1
0
mirror of https://github.com/gsi-upm/senpy synced 2024-12-22 13:08:13 +00:00
Go to file
2015-10-08 19:26:02 +02:00
docs Added docs 2015-02-24 09:03:36 +01:00
senpy More sensible exceptions when importing 2015-10-08 18:23:37 +02:00
tests Added indentation and default plugins 2015-09-29 11:14:28 +02:00
.travis.yml Forcing Travis 2015-02-24 07:50:14 +01:00
app.py Added default plugins to app.py 2015-10-06 14:39:42 +02:00
config.py Simple server 2014-07-13 15:39:31 +02:00
dev-requirements.txt PEP8 compliance 2014-11-20 19:29:49 +01:00
Dockerfile Added Dockerfile and instructions 2015-10-08 19:26:02 +02:00
LICENSE.txt Refactoring, name change 2014-09-16 16:45:06 +02:00
logo_fp7.gif Better readme, fixed app.py 2015-02-24 08:43:00 +01:00
logo_grande.png Better readme, fixed app.py 2015-02-24 08:43:00 +01:00
logo.png Added plugin architecture 2014-10-17 12:47:17 +02:00
logo.svg Added plugins by default and monkey patching 2015-06-18 17:53:15 +02:00
MANIFEST.in Added plugins by default and monkey patching 2015-06-18 17:53:15 +02:00
NOTICE Refactoring, name change 2014-09-16 16:45:06 +02:00
Procfile Simple server 2014-07-13 15:39:31 +02:00
README.rst Added Dockerfile and instructions 2015-10-08 19:26:02 +02:00
requirements.txt Fixed requirements 2015-02-24 07:54:58 +01:00
setup.cfg Better readme, fixed app.py 2015-02-24 08:43:00 +01:00
setup.py Bumped to 0.4.8 2015-10-08 19:21:24 +02:00
supervisord.conf Files for deployment 2014-11-05 19:17:27 +01:00
test-requirements.txt Added indentation and default plugins 2015-09-29 11:14:28 +02:00

.. image:: logo.png
   :height: 6em
   :align: left

=====================================
`Senpy <http://senpy.herokuapp.com>`_
=====================================
.. image:: https://travis-ci.org/gsi-upm/senpy.svg?branch=master
    :target: https://travis-ci.org/gsi-upm/senpy

Sentiment analysis web services using a common interface: NIF+JSON-LD.

With Senpy, you can easily turn your sentiment analysis algorithm into a web service, just by creating a new plugin.

`DEMO on Heroku <http://senpy.herokuapp.com>`_

Installation
------------
The stable version can be installed via pip:

.. code:: bash

   pip install senpy

   
Alternatively, you can use the development version:
 
.. code:: bash

   git clone git@github.com:gsi-upm/senpy
   cd senpy
   pip install -r requirements.txt 
   
To install it system-wide, use setuptools:

.. code:: bash

   python setup.py install


If you are using docker, build the image or use the pre-built one:

.. code:: bash

    docker run -ti -p 5000:5000 balkian/senpy --host 0.0.0.0 --default-plugins

To add custom plugins, add a volume and tell senpy where to find the plugins:
   
.. code:: bash

    docker run -ti -p 5000:5000 -v <PATH OF PLUGINS:/plugins balkian/senpy --host 0.0.0.0 --default-plugins -f /plugins

Using
-----

You can use the modules included in senpy to build your own application.
However, the easiest and recommended way is to just use the command-line tool to load your plugins and launch the server.

.. code:: bash

   senpy

or, alternatively:

.. code:: bash

    python -m senpy


This will create a server with any modules found in the current path.
For more options, see the `--help` page.


TO-DO
-----

* Improve documentation and generate it with Sphinx
* ReadTheDocs
* Improve README


Acknowledgement
---------------
EUROSENTIMENT PROJECT
Grant Agreement no: 296277
Starting date: 01/09/2012
Project duration: 24 months

.. image:: logo_grande.png
    :target: logo_grande.png
    :width: 100px
    :alt: Eurosentiment Logo

.. image:: logo_fp7.gif
    :width: 100px
    :target: logo_fp7.gif