From 23a5595d18adee9efa942074a60a185c44ad6133 Mon Sep 17 00:00:00 2001 From: militarpancho Date: Fri, 28 Apr 2017 13:26:00 +0200 Subject: [PATCH] Added language information in emotion wn-affect --- emotion-wnaffect/emotion-wnaffect.senpy | 43 +++++++++++++++---------- 1 file changed, 26 insertions(+), 17 deletions(-) diff --git a/emotion-wnaffect/emotion-wnaffect.senpy b/emotion-wnaffect/emotion-wnaffect.senpy index 43b69ed..e526f8f 100644 --- a/emotion-wnaffect/emotion-wnaffect.senpy +++ b/emotion-wnaffect/emotion-wnaffect.senpy @@ -1,17 +1,26 @@ -{ - "name": "emotion-wnaffect", - "module": "emotion-wnaffect", - "description": "Emotion classifier using WordNet-Affect to calculate the percentage of each emotion. This plugin classifies among 6 emotions: anger,fear,disgust,joy,sadness or neutral. The only available language is English (en)", - "author": "@icorcuera @balkian", - "version": "0.2", - "synsets_path": "/data/emotion-wnaffect/a-synsets.xml", - "hierarchy_path": "/data/emotion-wnaffect/a-hierarchy.xml", - "wn16_path": "/data/emotion-wnaffect/wordnet1.6/dict", - "onyx:usesEmotionModel": "emoml:big6", - "requirements": [ - "nltk>=3.0.5", - "lxml>=3.4.2", - "pattern", - ], - "async":False -} +--- +name: emotion-wnaffect +module: emotion-wnaffect +description: 'Emotion classifier using WordNet-Affect to calculate the percentage + of each emotion. This plugin classifies among 6 emotions: anger,fear,disgust,joy,sadness + or neutral. The only available language is English (en)' +author: "@icorcuera @balkian" +version: '0.2' +extra_params: + language: + "@id": lang_wnaffect + aliases: + - language + - l + required: false + options: + - en +synsets_path: "/data/emotion-wnaffect/a-synsets.xml" +hierarchy_path: "/data/emotion-wnaffect/a-hierarchy.xml" +wn16_path: "/data/emotion-wnaffect/wordnet1.6/dict" +onyx:usesEmotionModel: emoml:big6 +requirements: +- nltk>=3.0.5 +- lxml>=3.4.2 +- pattern +async: false \ No newline at end of file