Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
djplaner opened this issue Feb 7, 2016 · 1 comment

Comments

@djplaner
Copy link
Owner

djplaner commented Feb 7, 2016

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

  • URL for the API call
  • key parameter for the key
  • data as a json data

Would need to include

  • option on configure screen to turn on sentiment analysis and add in the required data
  • also some way to test it
  • How would I handle errors - is there a common method for error response to RESTFUL?
  • When posts are mirrored, a call would be required - or does this become a separate cron job
  • need to update database to specify sentiment analysis (-1 as not calculated)
  • need to update displays (students and markers) to show sentiment
@djplaner
Copy link
Owner Author

djplaner commented Feb 7, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant