def cosine_similarity(self, document):
        if self.model is not None: 
            return self.model.cosine_similarity(self, document)
        if document.model is not None:
            return document.model.cosine_similarity(self, document)
        return cosine_similarity(self.vector, document.vector)
Returns the similarity between the two documents as a number between 0.0-1.0.
dataset/ETHPy150Open clips/pattern/pattern/vector/__init__.py/Document.cosine_similarity