In the spirit of this approach, we add an additional component to the network architecture, capturing the bag-of-words for the entire document.
at the root node we have: with Ψ rst-root defined recursively from Equations 3 and 4, θ indicating the vector of per-word weights, and the scalar γ controlling the tradeoff between these two components.