Skip to main content
. Author manuscript; available in PMC: 2017 Feb 21.
Published in final edited form as: Proc ACM Int Conf Inf Knowl Manag. 2016 Oct;2016:939–948. doi: 10.1145/2983323.2983793

Algorithm 1.

Shifter Effect Learning

Input: review documents 𝒟, a vector of quantified
effects ft−1, review feature matrix W, parameters
matrices Θ, P, Q, common sentiment words Σc
for each review r in 𝒟 do
graphic file with name nihms845630t1.jpg for each shifter w in Σs do
graphic file with name nihms845630t2.jpg Identify sentiment contexts Cw of w in r
Identify the single modified words in Cw and the
words must be in Σc
Construct shifter features in xr by Eq. (7)
Solve Eq. (9) for f*
Return: a vector of quantified effects f*, which serves as ft for next iteration