Skip to content

Commit

Permalink
minor typos
Browse files Browse the repository at this point in the history
  • Loading branch information
hhaensel committed Jan 6, 2021
1 parent 7b3ce8c commit 8cf2065
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tf_idf.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down

0 comments on commit 8cf2065

Please sign in to comment.