We call this method learning in the similarity space (LSS).
in LSS, each document d is first represented with a document space vector (called a d-vector) based on the document itself as in the traditional classification learning of AA.