Fix whitespace

This commit is contained in:
ines 2018-03-27 22:20:59 +02:00
parent e0ae390607
commit 0c829e6605

View File

@ -305,7 +305,7 @@ cdef class Doc:
break
else:
return 1.0
if self.vector_norm == 0 or other.vector_norm == 0:
return 0.0
return numpy.dot(self.vector, other.vector) / (self.vector_norm * other.vector_norm)