From 7250f56f17fcba7f45757b171f7464cf0b84d62b Mon Sep 17 00:00:00 2001 From: militarpancho Date: Wed, 25 Jan 2017 18:58:27 +0100 Subject: [PATCH] Plugins names updated --- {emoTextWNA => emotion-wnaffect}/README.rst | 2 +- .../emotion-wnaffect.py | 0 .../emotion-wnaffect.senpy | 4 +-- {emoTextWNA => emotion-wnaffect}/emotion.py | 0 {emoTextWNA => emotion-wnaffect}/test_wna.py | 0 {emoTextWNA => emotion-wnaffect}/wnaffect.py | 0 sentiment-basic/README.md | 26 +++++++++++++++++++ .../SentiWordNet_3.0.txt | 0 .../sentiment-basic.py | 0 .../sentiment-basic.senpy | 4 +-- {sentiText => sentiment-basic}/sentiwn.py | 0 {sentiText => sentiment-basic}/test.py | 0 .../unigram_spanish.pickle | 0 .../README.md | 2 +- .../meaningCloud.py | 0 .../meaningCloud.senpy | 2 +- 16 files changed, 33 insertions(+), 7 deletions(-) rename {emoTextWNA => emotion-wnaffect}/README.rst (72%) rename emoTextWNA/emotextWAF.py => emotion-wnaffect/emotion-wnaffect.py (100%) rename emoTextWNA/emotextWAF.senpy => emotion-wnaffect/emotion-wnaffect.senpy (91%) rename {emoTextWNA => emotion-wnaffect}/emotion.py (100%) rename {emoTextWNA => emotion-wnaffect}/test_wna.py (100%) rename {emoTextWNA => emotion-wnaffect}/wnaffect.py (100%) create mode 100755 sentiment-basic/README.md rename {sentiText => sentiment-basic}/SentiWordNet_3.0.txt (100%) rename sentiText/sentitext.py => sentiment-basic/sentiment-basic.py (100%) rename sentiText/sentitext.senpy => sentiment-basic/sentiment-basic.senpy (89%) rename {sentiText => sentiment-basic}/sentiwn.py (100%) rename {sentiText => sentiment-basic}/test.py (100%) rename {sentiText => sentiment-basic}/unigram_spanish.pickle (100%) rename {meaningCloud => sentiment-meaningCloud}/README.md (94%) rename {meaningCloud => sentiment-meaningCloud}/meaningCloud.py (100%) rename {meaningCloud => sentiment-meaningCloud}/meaningCloud.senpy (94%) diff --git a/emoTextWNA/README.rst b/emotion-wnaffect/README.rst similarity index 72% rename from emoTextWNA/README.rst rename to emotion-wnaffect/README.rst index 1ab8599..7b70876 100644 --- a/emoTextWNA/README.rst +++ b/emotion-wnaffect/README.rst @@ -1,6 +1,6 @@ This plugin uses WNAffect labels for emotion analysis. -The emotextWAF.senpy file can be copied and modified to use different versions of wnaffect with the same python code. +The emotion-wnaffect.senpy file can be copied and modified to use different versions of wnaffect with the same python code. Known issues diff --git a/emoTextWNA/emotextWAF.py b/emotion-wnaffect/emotion-wnaffect.py similarity index 100% rename from emoTextWNA/emotextWAF.py rename to emotion-wnaffect/emotion-wnaffect.py diff --git a/emoTextWNA/emotextWAF.senpy b/emotion-wnaffect/emotion-wnaffect.senpy similarity index 91% rename from emoTextWNA/emotextWAF.senpy rename to emotion-wnaffect/emotion-wnaffect.senpy index ae9f812..2d4dd6a 100644 --- a/emoTextWNA/emotextWAF.senpy +++ b/emotion-wnaffect/emotion-wnaffect.senpy @@ -1,6 +1,6 @@ { - "name": "EmoTextWAF", - "module": "emotextWAF", + "name": "emotion-wnaffect", + "module": "emotion-wnaffect", "description": "Emotion classifier using rule-based classification.", "author": "@icorcuera @balkian", "version": "0.2", diff --git a/emoTextWNA/emotion.py b/emotion-wnaffect/emotion.py similarity index 100% rename from emoTextWNA/emotion.py rename to emotion-wnaffect/emotion.py diff --git a/emoTextWNA/test_wna.py b/emotion-wnaffect/test_wna.py similarity index 100% rename from emoTextWNA/test_wna.py rename to emotion-wnaffect/test_wna.py diff --git a/emoTextWNA/wnaffect.py b/emotion-wnaffect/wnaffect.py similarity index 100% rename from emoTextWNA/wnaffect.py rename to emotion-wnaffect/wnaffect.py diff --git a/sentiment-basic/README.md b/sentiment-basic/README.md new file mode 100755 index 0000000..a1a2756 --- /dev/null +++ b/sentiment-basic/README.md @@ -0,0 +1,26 @@ +# Sentiment basic plugin + +This plugin is based on the classifier developed for the TASS 2015 competition. It has been developed for Spanish and English. This is a demo plugin that uses only some features from the TASS 2015 classifier. To use the entirely functional classifier you can use the service in: http://senpy.cluster.gsi.dit.upm.es + +There is more information avaliable in: + + - Aspect based Sentiment Analysis of Spanish Tweets, Oscar Araque and Ignacio Corcuera-Platas and Constantino Román-Gómez and Carlos A. Iglesias and J. Fernando Sánchez-Rada. http://gsi.dit.upm.es/es/investigacion/publicaciones?view=publication&task=show&id=376 + +## Usage +Params accepted: + +- Language: Spanish (es). +- Input: text to analyse. + + +Example request: +``` +http://senpy.cluster.gsi.dit.upm.es/api/?algo=sentiment-basic&language=es&input=I%20love%20Madrid +``` + +Example respond: This plugin follows the standard for the senpy plugin response. For more information, please visit [senpy documentation](http://senpy.readthedocs.io). Specifically, NIF API section. + + +![alt GSI Logo][logoGSI] + +[logoGSI]: http://www.gsi.dit.upm.es/images/stories/logos/gsi.png "GSI Logo" diff --git a/sentiText/SentiWordNet_3.0.txt b/sentiment-basic/SentiWordNet_3.0.txt similarity index 100% rename from sentiText/SentiWordNet_3.0.txt rename to sentiment-basic/SentiWordNet_3.0.txt diff --git a/sentiText/sentitext.py b/sentiment-basic/sentiment-basic.py similarity index 100% rename from sentiText/sentitext.py rename to sentiment-basic/sentiment-basic.py diff --git a/sentiText/sentitext.senpy b/sentiment-basic/sentiment-basic.senpy similarity index 89% rename from sentiText/sentitext.senpy rename to sentiment-basic/sentiment-basic.senpy index 5e71893..2fa1de8 100644 --- a/sentiText/sentitext.senpy +++ b/sentiment-basic/sentiment-basic.senpy @@ -1,6 +1,6 @@ { - "name": "SentiText", - "module": "sentitext", + "name": "sentiment-basic", + "module": "sentiment-basic", "description": "Sentiment classifier using rule-based classification for Spanish. Based on english to spanish translation and SentiWordNet sentiment knowledge.", "author": "github.com/nachtkatze", "version": "0.1", diff --git a/sentiText/sentiwn.py b/sentiment-basic/sentiwn.py similarity index 100% rename from sentiText/sentiwn.py rename to sentiment-basic/sentiwn.py diff --git a/sentiText/test.py b/sentiment-basic/test.py similarity index 100% rename from sentiText/test.py rename to sentiment-basic/test.py diff --git a/sentiText/unigram_spanish.pickle b/sentiment-basic/unigram_spanish.pickle similarity index 100% rename from sentiText/unigram_spanish.pickle rename to sentiment-basic/unigram_spanish.pickle diff --git a/meaningCloud/README.md b/sentiment-meaningCloud/README.md similarity index 94% rename from meaningCloud/README.md rename to sentiment-meaningCloud/README.md index e41849b..67f2f86 100644 --- a/meaningCloud/README.md +++ b/sentiment-meaningCloud/README.md @@ -25,7 +25,7 @@ http://senpy.cluster.gsi.dit.upm.es/api/?algo=meaningCloud&language=en&apiKey=