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

@@ -7,7 +7,7 @@ from senpy.models import Results, Sentiment, Entry
class Sentiment140Plugin(SentimentPlugin):
def analyse(self,entry,params):
def analyse_entry(self,entry,params):
lang = params.get("language", "auto")
res = requests.post("http://www.sentiment140.com/api/bulkClassifyJson",

View File

@@ -1,7 +1,7 @@
{
"name": "sentiment-140",
"module": "sentiment-140",
"description": "What my plugin broadly does",
"description": "Sentiment classifier using rule-based classification for English and Spanish. This plugin uses sentiment140 data to perform classification. For more information: http://help.sentiment140.com/for-students/",
"author": "@balkian",
"version": "0.1",
"extra_params": {