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