Skip to content

Commit 4482dd4

Browse files
authored
Merge pull request #18 from ekzhu/ekzhu-patch-1 for issue #17
Update documentations.
2 parents a2dd350 + 86670f0 commit 4482dd4

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

SetSimilaritySearch/search.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ class SearchIndex(object):
2020
2121
Args:
2222
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.
2426
similarity_func_name (str): the name of the similarity function used;
2527
this function currently supports `"jaccard"`, `"cosine"`, and
2628
`"containment"`.
@@ -72,7 +74,7 @@ def query(self, s):
7274
"""Query the search index for sets similar to the query set.
7375
7476
Args:
75-
s (Iterable): the query set.
77+
s (Iterable): the query set with unique elements.
7678
7779
Returns (list): a list of tuples `(index, similarity)` where the index
7880
is the index of the matching sets in the original list of sets.

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
# For a discussion on single-sourcing the version across setup.py and the
3636
# project code, see
3737
# https://packaging.python.org/en/latest/single_source_version.html
38-
version="1.0.0", # Required
38+
version="1.0.1", # Required
3939
# This is a one-line description or tagline of what your project does. This
4040
# corresponds to the "Summary" metadata field:
4141
# https://packaging.python.org/specifications/core-metadata/#summary

0 commit comments

Comments
 (0)