The number of summed-over elements in the third term of (8), however, is quadratic in the size of the vocabulary, making it hard to compute.
in practice, we can approximate the expectation by sampling of 'negative' examples.