From 8cf2065f7285e589e396143a35c7d58697b26612 Mon Sep 17 00:00:00 2001 From: Helmut Haensel Date: Wed, 6 Jan 2021 18:01:21 +0100 Subject: [PATCH] minor typos --- src/tf_idf.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ```