The emotion vector a (d) for document d is then, the sum of the emotion vectors of all its words, a (d) = i∈d a (w i ).
if the document has an association with at least one emotion, i.e., ∃j, a j (d) > 0, then, S = argmax i a (d), where S ⊆ L. documents assigned zero emotion score are not considered.