We might, for example, consider dramatic (term X) and pleasant (term Y) to correlate with a review of a good movie (task A), while finding them of opposite polarity in the context of a dating profile (task B).
good vectors for X and Y should yield an inner product close to 1 in the context of task A, and −1 in the context of task B.