1
0
mirror of https://github.com/gsi-upm/senpy synced 2025-08-24 10:32:20 +00:00

Addapted plugins to senpy 0.8.2

This commit is contained in:
militarpancho
2017-03-01 13:23:41 +01:00
parent 65b8873092
commit cc112c5ac5
10 changed files with 13 additions and 37 deletions

View File

@@ -4,7 +4,7 @@ This plugin allows to choose sentiment and emotion plugins to retrieve a respons
You can adjust the parameters of the plugin as follows:
- Sentiments plugins: EmoTextANEW, EmoTextWAF(only english)
- Emotions plugins: sentiText, vaderSentiment,meaningCloud(requires API KEY)
- Sentiments plugins: emotion-wnaffect, emotion-anew(only english)
- Emotions plugins: sentiment-tass, sentiment-vader,sentiment-meaningCloud(requires API KEY)
- Endpoint: the endpoint where the used plugins are. (default: http://senpy.cluster.gsi.dit.upm.es/api/)
- Language: english(en) or spanish(es)

View File

@@ -14,14 +14,6 @@ logger = logging.getLogger(__name__)
class unifiedPlugin(SentimentPlugin):
def activate(self, *args, **kwargs):
pass
def deactivate(self, *args, **kwargs):
self.save()
def analyse(self, **kwargs):
params = dict(kwargs)
txt = params["input"]

View File

@@ -26,7 +26,6 @@
"endpoint": {
"aliases": ["endpoint"],
"required": true,
"options": ["http://senpy.cluster.gsi.dit.upm.es/api/"],
"default": "http://senpy.cluster.gsi.dit.upm.es/api/"
},
"apiKey": {