Some extensions of score matching