1
0
mirror of https://github.com/gsi-upm/senpy synced 2024-11-22 08:12:27 +00:00

Fix URI emotion-anew

This commit is contained in:
J. Fernando Sánchez 2019-07-10 13:07:55 +02:00
parent 96ec10d791
commit d961d8ac5b

View File

@ -76,7 +76,7 @@ class ANEW(EmotionPlugin):
"neutral": "http://gsi.dit.upm.es/ontologies/wnaffect/ns#neutral-emotion", "neutral": "http://gsi.dit.upm.es/ontologies/wnaffect/ns#neutral-emotion",
"sadness": "http://gsi.dit.upm.es/ontologies/wnaffect/ns#sadness" "sadness": "http://gsi.dit.upm.es/ontologies/wnaffect/ns#sadness"
} }
onyx__usesEmotionModel = "emoml:pad" onyx__usesEmotionModel = "emoml:pad-dimensions"
nltk_resources = ['stopwords'] nltk_resources = ['stopwords']
def activate(self, *args, **kwargs): def activate(self, *args, **kwargs):
@ -182,9 +182,9 @@ class ANEW(EmotionPlugin):
emotions.id = "Emotions0" emotions.id = "Emotions0"
emotion1 = Emotion(id="Emotion0") emotion1 = Emotion(id="Emotion0")
emotion1["http://www.gsi.dit.upm.es/ontologies/onyx/vocabularies/anew/ns#valence"] = feature_set['V'] emotion1["emoml:pad-dimensions_pleasure"] = feature_set['V']
emotion1["http://www.gsi.dit.upm.es/ontologies/onyx/vocabularies/anew/ns#arousal"] = feature_set['A'] emotion1["emoml:pad-dimensions_arousal"] = feature_set['A']
emotion1["http://www.gsi.dit.upm.es/ontologies/onyx/vocabularies/anew/ns#dominance"] = feature_set['D'] emotion1["emoml:pad-dimensions_dominance"] = feature_set['D']
emotion1.prov(activity) emotion1.prov(activity)
emotions.prov(activity) emotions.prov(activity)