To make prediction, we have the document-level sentiment classifier as where is a function that depends only on the number of sentences in x, as illustrated in (Yessenalina et al., 2010).
for each sentence x j , we compute the joint subjectivity and polarity score with respect to aspect a and label y as we then assign aspect a j to sentence x j if After sorting score(x j , a j , y) in decreasing order and taking summation by selecting the top f (|x|) (or fewer, if there are fewer than f (|x|) that have positive joint score) sentences as the total score for each y ∈ {+1,−1} , we then predict y with the higher joint score as the sentiment of the whole document.