Cosine similarity measures the similarity between two vectors of an inner product space. It is measured by the cosine of the angle between two vectors and determines whether two vectors are pointing in roughly the same direction. It is often used to measure document similarity in text analysis.
artaxerxess / cosine-similarity Goto Github PK
View Code? Open in Web Editor NEWApp for measuring the similarity between two sentences.