generalization of the derivation kernel