Alternatively, we may want to treat each instance of w in a document that contains an instance of w to be a co-occurrence event.
if w appears three times in a document that contains two instances of w, the former method counts it as one co-occurrence, while the latter as six co-occurrences.