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:
@@ -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)
|
||||
|
@@ -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"]
|
||||
|
@@ -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": {
|
||||
|
Reference in New Issue
Block a user