Fixed a documentation error in string_suggestions
This commit is contained in:
parent
8b0a136aa0
commit
0248a3ba1b
1 changed files with 3 additions and 3 deletions
|
|
@ -1204,9 +1204,9 @@ def string_suggestions(string, vocabulary, cutoff=0.6, maxnum=3):
|
||||||
maxnum (int): Maximum number of suggestions to return.
|
maxnum (int): Maximum number of suggestions to return.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
suggestions (list): Suggestions from `vocabulary` that fall
|
suggestions (list): Suggestions from `vocabulary` with a
|
||||||
under the `cutoff` setting. Could be empty if there are no
|
similarity-rating that higher than or equal to `cutoff`.
|
||||||
matches.
|
Could be empty if there are no matches.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
return [tup[1] for tup in sorted([(string_similarity(string, sugg), sugg)
|
return [tup[1] for tup in sorted([(string_similarity(string, sugg), sugg)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue