def cosine_distance(u, v):
    return 1 - (numpy.dot(u, v) / (sqrt(numpy.dot(u, u)) * sqrt(numpy.dot(v, v))))
Returns 1 minus the cosine of the angle between vectors v and u. This is equal to
dataset/ETHPy150Open nltk/nltk/nltk/cluster/util.py/cosine_distance