VectorSpaceMapExtensions extension

Extensions on Map<String, num>, used for working with vector-space models.

on

Methods

cosineSimilarity(Map<String, num> other) double
Returns the cosine similarity between this vector and other.