Fixed a documentation error in string_suggestions

This commit is contained in:
Griatch 2016-04-05 14:56:42 +02:00
parent 8b0a136aa0
commit 0248a3ba1b

View file

@ -1204,9 +1204,9 @@ def string_suggestions(string, vocabulary, cutoff=0.6, maxnum=3):
maxnum (int): Maximum number of suggestions to return.
Returns:
suggestions (list): Suggestions from `vocabulary` that fall
under the `cutoff` setting. Could be empty if there are no
matches.
suggestions (list): Suggestions from `vocabulary` with a
similarity-rating that higher than or equal to `cutoff`.
Could be empty if there are no matches.
"""
return [tup[1] for tup in sorted([(string_similarity(string, sugg), sugg)