djplaner / moodle-mod_bim

A Moodle activity module the provides support for managing/marking individual student blogs hosted on external services.
http://davidtjones.wordpress.com/research/bam-blog-aggregation-management/
7 stars 2 forks source link

Adding sentiment analysis - Indico and hopefully support for other RESTful APIs #99

Open djplaner opened 8 years ago

djplaner commented 8 years ago

Trying to explore if I can quickly add support for sentiment analysis.

Plan is to allow support for any RESTFUL api - e.g. Indico will be the test case. Indications are that there are numerous other players - https://www.quora.com/Where-can-I-find-an-online-API-for-sentiment-analysis

Indico's API (https://indico.io/docs?api-keys#sentiment)

curl 'http://apiv2.indico.io/sentiment?key=__key__' --data '{"data":"I love writing code!"}' OR sentimenthq

The elements here are

Would need to include

djplaner commented 8 years ago

Alchemy API

http://www.alchemyapi.com/api/sentiment-analysis and http://www.alchemyapi.com/api/sentiment/htmlc.html

HTMLGetTextSentiment

600Kb max

URL - http://gateway-a.watsonplatform.net/calls/html/HTMLGetTextSentiment apikey html url (optional) outputMode (xml|json|rdf)

Response - JSON docSentiment : { score }

Complication having to handle different response types

TheySay.io

http://www.theysay.io/sentiment-analysis-api/

Max 30 requests per minute 500 requests per day