'Returns the distance (COSINE, EUCLIDEAN, ...) between two document vectors (0.0-1.0).'

def distance(self, document1, document2, *args, **kwargs):

    return distance(document1.vector, document2.vector, *args, **kwargs)
