Although it is tempting to apply these kernels to measure the similarity between the dependency (sub)trees surrounding the target words, it should be noted that our goal is to measure the similarity of particular word pairs in two sentences, and not of the sentences or their entire dependency trees.
tree kernels do not give any special treatment of the target words, and thus they even count subtrees that do not involve a target word at all.