If both instances contain only flat features, we simply employ a normalized linear kernel, which computes similarity as the cosine of their feature vectors.
if one or both of them has a tree-based feature, a linear ker-nel is not directly applicable.