File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,9 @@ class SearchIndex(object):
20
20
21
21
Args:
22
22
sets (list): a list of sets, each entry is an iterable representing a
23
- set.
23
+ set. Note, it is the caller's responsibility to ensure the elements
24
+ in each set are unique, and duplicate elements will cause incorrect
25
+ result.
24
26
similarity_func_name (str): the name of the similarity function used;
25
27
this function currently supports `"jaccard"`, `"cosine"`, and
26
28
`"containment"`.
@@ -72,7 +74,7 @@ def query(self, s):
72
74
"""Query the search index for sets similar to the query set.
73
75
74
76
Args:
75
- s (Iterable): the query set.
77
+ s (Iterable): the query set with unique elements .
76
78
77
79
Returns (list): a list of tuples `(index, similarity)` where the index
78
80
is the index of the matching sets in the original list of sets.
Original file line number Diff line number Diff line change 35
35
# For a discussion on single-sourcing the version across setup.py and the
36
36
# project code, see
37
37
# https://packaging.python.org/en/latest/single_source_version.html
38
- version = "1.0.0 " , # Required
38
+ version = "1.0.1 " , # Required
39
39
# This is a one-line description or tagline of what your project does. This
40
40
# corresponds to the "Summary" metadata field:
41
41
# https://packaging.python.org/specifications/core-metadata/#summary
You can’t perform that action at this time.
0 commit comments