An effective way to measure the relatedness for two words is the inner product or cosine similarity between two corresponding word embeddings.
since these two kinds of interactions represent the relative information encoded in hidden embedding space, we expect that the relevance signal extraction process could generalize well to unseen categories.