On the document level, we keep generating multiple kinds of attention to sentences and get the document representation, which is fed into a softmax function for classification.
let us first formalize the notation.