For each sentence s in D, we count the wordword co-occurrence in a small window H, and build a frequency matrix W s ∈ Z V ×V , where Z denotes the set of integers.
w s (i, j) indicates the frequency that word w i and w j cooccur in s within the window H. In this way, we can capture the lexical patterns of s in w s .