Before showing the formula used for computing the word weights, we first introduce some notation: • Let X ∈ X be an arbitrary bag, and let X.a 1 and X.a 2 be the two arguments associated with the bag.
for example, consider the sentences S 1 and S 2 from the bag associated with "Google" and "YouTube" (as shown in figure 1).