Skip to content

Commit

Permalink
Merge pull request #18 from ekzhu/ekzhu-patch-1 for issue #17
Browse files Browse the repository at this point in the history
Update documentations.
  • Loading branch information
ekzhu authored Oct 11, 2022
2 parents a2dd350 + 86670f0 commit 4482dd4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions SetSimilaritySearch/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ class SearchIndex(object):
Args:
sets (list): a list of sets, each entry is an iterable representing a
set.
set. Note, it is the caller's responsibility to ensure the elements
in each set are unique, and duplicate elements will cause incorrect
result.
similarity_func_name (str): the name of the similarity function used;
this function currently supports `"jaccard"`, `"cosine"`, and
`"containment"`.
Expand Down Expand Up @@ -72,7 +74,7 @@ def query(self, s):
"""Query the search index for sets similar to the query set.
Args:
s (Iterable): the query set.
s (Iterable): the query set with unique elements.
Returns (list): a list of tuples `(index, similarity)` where the index
is the index of the matching sets in the original list of sets.
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
# For a discussion on single-sourcing the version across setup.py and the
# project code, see
# https://packaging.python.org/en/latest/single_source_version.html
version="1.0.0", # Required
version="1.0.1", # Required
# This is a one-line description or tagline of what your project does. This
# corresponds to the "Summary" metadata field:
# https://packaging.python.org/specifications/core-metadata/#summary
Expand Down

0 comments on commit 4482dd4

Please sign in to comment.