mirror of
https://github.com/gsi-upm/senpy
synced 2024-11-22 16:12:29 +00:00
Updated anew and wnaffect README explaining how to obtain resources
This commit is contained in:
parent
e88ca98438
commit
b22ac843b6
@ -1,5 +1,4 @@
|
|||||||
|
# Plugin emotion-anew
|
||||||
#Plugin emotion-anew
|
|
||||||
|
|
||||||
This plugin consists on an **emotion classifier** that detects six possible emotions:
|
This plugin consists on an **emotion classifier** that detects six possible emotions:
|
||||||
- Anger : general-dislike.
|
- Anger : general-dislike.
|
||||||
@ -28,7 +27,9 @@ http://senpy.cluster.gsi.dit.upm.es/api/?algo=emotion-anew&language=en&input=I%2
|
|||||||
```
|
```
|
||||||
|
|
||||||
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.
|
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.
|
||||||
|
# Known issues
|
||||||
|
|
||||||
|
To obtain Anew dictionary you can download from here: [](https://github.com/hcorona/SMC2015/blob/master/resources/ANEW2010All.txt).
|
||||||
![alt GSI Logo][logoGSI]
|
![alt GSI Logo][logoGSI]
|
||||||
|
|
||||||
[logoES]: https://www.gsi.dit.upm.es/ontologies/onyx/img/eurosentiment_logo.png "EuroSentiment logo"
|
[logoES]: https://www.gsi.dit.upm.es/ontologies/onyx/img/eurosentiment_logo.png "EuroSentiment logo"
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
# WordNet-Affect plugin
|
# WordNet-Affect plugin
|
||||||
|
|
||||||
This plugin uses WordNet-Affect (http://wndomains.fbk.eu/wnaffect.html) to calculate the percentage of each emotion. The plugin classifies among five diferent emotions: anger, fear, disgust, joy and sadness. It is has been used a emotion mapping enlarge the emotions:
|
This plugin uses WordNet-Affect (http://wndomains.fbk.eu/wnaffect.html) to calculate the percentage of each emotion. The plugin classifies among five diferent emotions: anger, fear, disgust, joy and sadness. It is has been used a emotion mapping enlarge the emotions:
|
||||||
@ -35,7 +34,8 @@ The emotion-wnaffect.senpy file can be copied and modified to use different vers
|
|||||||
|
|
||||||
- This plugin uses the pattern library, which means it will only run on python 2.7
|
- This plugin uses the pattern library, which means it will only run on python 2.7
|
||||||
- Wnaffect and corpora files are not included in the repository, but can be easily added either to the docker image (using a volume) or in a new docker image.
|
- Wnaffect and corpora files are not included in the repository, but can be easily added either to the docker image (using a volume) or in a new docker image.
|
||||||
|
You can download Wordnet 1.6 here: [](http://wordnetcode.princeton.edu/1.6/wn16.unix.tar.gz) and extract the dict folder.
|
||||||
|
The hierarchy and synsets files can be found here: [](https://github.com/larsmans/wordnet-domains-sentiwords/tree/master/wn-domains/wn-affect-1.1)
|
||||||
![alt GSI Logo][logoGSI]
|
![alt GSI Logo][logoGSI]
|
||||||
|
|
||||||
[logoGSI]: http://www.gsi.dit.upm.es/images/stories/logos/gsi.png "GSI Logo"
|
[logoGSI]: http://www.gsi.dit.upm.es/images/stories/logos/gsi.png "GSI Logo"
|
||||||
|
Loading…
Reference in New Issue
Block a user