[issue21344] save scores or ratios in difflib get_close_matches

Michael Ohlrogge report at bugs.python.org
Thu Oct 23 23:42:05 CEST 2014


Michael Ohlrogge added the comment:

Another way the scores could be useful would be to write an algorithm that would give you a number of possible answers based on the scores that you get.  In other words, for example, perhaps if one of the possible matches has a score about .9, then it would only give you one, but if all were below .8, it would give you several.  Or, if the highest score were at least .1 greater than the next highest, it would only give you one, but if there were a bunch that were close together, it would return those.  

I'm not saying these specific applications should be part of the package, they are just more examples of how you could productively use the scores.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21344>
_______________________________________


More information about the Python-bugs-list mailing list