Skip to content

Commit

Permalink
emended note
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislit committed Jan 29, 2019
1 parent e2dab29 commit 765f08f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion abydos/distance/_softtf_idf.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class SoftTFIDF(_TokenDistance):
.. math::
sim_{SoftTF-IDF}(X, Y) = \sum_{w \in \{sim_{metric}(x, y) > \theta
sim_{SoftTF-IDF}(X, Y) = \sum_{w \in \{sim_{metric}(x, y) \ge \theta
| x \in X, y \in Y \}} V(w, X) \cdot V(w, Y)
V(w, S) = \frac{V'(w, S)}{\sqrt{\sum_{w \in S} V'(w, S)^2}}
Expand All @@ -59,7 +59,11 @@ class SoftTFIDF(_TokenDistance):
ensure the logarithms do not fall to 0, which will tend to result in 0.0
similarities even when there is a degree of matching.
Rather than needing to exceed the threshold value, as in :cite:`Cohen:2003`
the similarity must be greater than or equal to the threshold.
.. versionadded:: 0.4.0
"""

def __init__(
Expand Down

0 comments on commit 765f08f

Please sign in to comment.