-
Notifications
You must be signed in to change notification settings - Fork 1
Sentiment Analysis
K Sashi Kumar edited this page Jul 23, 2017
·
1 revision
On creation of each of the discussions, the title
and description
of the discussion is sentiment analyzed and the score is stored in sentiment
column in the discussion
table. Since the sentiment computation part is done through Algorithmia
, which is an algorithm as a service, the computation is offloaded to the background job.
The sidekiq worker that performs this actions is in: app/jobs/sentiment/analyzer.rb
The client stub code that communicates with Algorithmia
is in: lib/sentiment/algorithmia_client.rb