1
0
mirror of https://github.com/gsi-upm/senpy synced 2024-11-22 00:02:28 +00:00
senpy/community-plugins
J. Fernando Sánchez e1d888ebd6 Add 'community-plugins/' from commit '4c73797246c6aff8d055abfef73d3f0d34b933a8'
git-subtree-dir: community-plugins
git-subtree-mainline: 7f712952be
git-subtree-split: 4c73797246
2023-09-20 13:32:30 +02:00
..
.makefiles Add 'community-plugins/' from commit '4c73797246c6aff8d055abfef73d3f0d34b933a8' 2023-09-20 13:32:30 +02:00
data@f34155c389 Add 'community-plugins/' from commit '4c73797246c6aff8d055abfef73d3f0d34b933a8' 2023-09-20 13:32:30 +02:00
emotion-anew Add 'community-plugins/' from commit '4c73797246c6aff8d055abfef73d3f0d34b933a8' 2023-09-20 13:32:30 +02:00
emotion-depechemood Add 'community-plugins/' from commit '4c73797246c6aff8d055abfef73d3f0d34b933a8' 2023-09-20 13:32:30 +02:00
emotion-wnaffect Add 'community-plugins/' from commit '4c73797246c6aff8d055abfef73d3f0d34b933a8' 2023-09-20 13:32:30 +02:00
example-plugin Add 'community-plugins/' from commit '4c73797246c6aff8d055abfef73d3f0d34b933a8' 2023-09-20 13:32:30 +02:00
k8s Add 'community-plugins/' from commit '4c73797246c6aff8d055abfef73d3f0d34b933a8' 2023-09-20 13:32:30 +02:00
sentiment-basic Add 'community-plugins/' from commit '4c73797246c6aff8d055abfef73d3f0d34b933a8' 2023-09-20 13:32:30 +02:00
sentiment-meaningCloud Add 'community-plugins/' from commit '4c73797246c6aff8d055abfef73d3f0d34b933a8' 2023-09-20 13:32:30 +02:00
sentiment-senticnet Add 'community-plugins/' from commit '4c73797246c6aff8d055abfef73d3f0d34b933a8' 2023-09-20 13:32:30 +02:00
sentiment-vader Add 'community-plugins/' from commit '4c73797246c6aff8d055abfef73d3f0d34b933a8' 2023-09-20 13:32:30 +02:00
.dockerignore Add 'community-plugins/' from commit '4c73797246c6aff8d055abfef73d3f0d34b933a8' 2023-09-20 13:32:30 +02:00
.gitignore Add 'community-plugins/' from commit '4c73797246c6aff8d055abfef73d3f0d34b933a8' 2023-09-20 13:32:30 +02:00
.gitlab-ci.yml Add 'community-plugins/' from commit '4c73797246c6aff8d055abfef73d3f0d34b933a8' 2023-09-20 13:32:30 +02:00
.gitmodules Add 'community-plugins/' from commit '4c73797246c6aff8d055abfef73d3f0d34b933a8' 2023-09-20 13:32:30 +02:00
.travis.yml Add 'community-plugins/' from commit '4c73797246c6aff8d055abfef73d3f0d34b933a8' 2023-09-20 13:32:30 +02:00
docker-compose.yml Add 'community-plugins/' from commit '4c73797246c6aff8d055abfef73d3f0d34b933a8' 2023-09-20 13:32:30 +02:00
Dockerfile Add 'community-plugins/' from commit '4c73797246c6aff8d055abfef73d3f0d34b933a8' 2023-09-20 13:32:30 +02:00
LICENSE Add 'community-plugins/' from commit '4c73797246c6aff8d055abfef73d3f0d34b933a8' 2023-09-20 13:32:30 +02:00
Makefile Add 'community-plugins/' from commit '4c73797246c6aff8d055abfef73d3f0d34b933a8' 2023-09-20 13:32:30 +02:00
README.md Add 'community-plugins/' from commit '4c73797246c6aff8d055abfef73d3f0d34b933a8' 2023-09-20 13:32:30 +02:00

Senpy Plugins

Requirements

Some of these plugins require licensed files to run, such as lexicons or corpora. You can manually download these resources and add them to the data folder.

Most plugins will look for these resources on activation. By default, we set the flag --allow-fail in senpy, so if a plugin fails to activate, the server will still run with the remaining plugins.

Running

Using docker

To deploy all the plugins in this repository, run:

docker-compose up

A server should now be available at http://localhost:5000.

Alternatively, you can use docker manually with the version of senpy you wish:

docker run --rm -ti -p 5000:5000 -v $PWD:/senpy-plugins gsiupm/senpy:0.10.8-python2.7

Note that some versions are untested.

Manually

First, install senpy from source or through pip:

pip install senpy

Now, you can try to run your plugins:

senpy -f .

Each plugin has different requirements. Senpy will try its best to automatically install requirements (python libraries and NLTK resources) for each plugin. Some cases may require manual installation of dependencies, or external packages.

For developers / Contributors

Licensed data

In our deployments, we keep all licensed data in a private submodule. You will likely need to initialize this submodule if you're a contributor:

git submodule update --init --recursive 

Adding a plugin from a separate repository

To add a plugin that has been developed in its own repository, you can use git-subtree as so:

$mname=<your plugin name>
$murl=<URL to your repository>

git remote add $mname $murl
git subtree add --prefix=$mname $mname master

Make sure to also add

LICENSE

This compilation of plugins for Senpy use Apache 2.0 License. Some of the resources used for train these plugins can not be distributed, specifically, resources for the plugins emotion-anew and emotion-wnaffect. For more information visit Senpy documentation