Tree kernels are hence not suitable for measuring word similarity.
the bag-of-walks kernels distinguish target words from the other words in the sentence, as they only count walks starting from the target words.