Skip to content

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

@djplaner

Description

@djplaner

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions