diff --git a/src/tf_idf.jl b/src/tf_idf.jl index 8f91e210..26666136 100644 --- a/src/tf_idf.jl +++ b/src/tf_idf.jl @@ -303,9 +303,9 @@ function tf_bm25!(dtm::AbstractMatrix{T}, tf::AbstractMatrix{F} end """ - function cos_similarity(tfidf::AbstractMatrix) + function cos_similarity(tfm::AbstractMatrix) -`cos_similarity` calculates the cosine similarity from a term matrix (typically the tf-idf matrix). +`cos_similarity` calculates the cosine similarity from a term frequency matrix (typically the tf-idf matrix). # Example ```