You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Returns the best match the best match in form of a tuple or None when there is no match with a score >= score_cutoff. The Tuple will be in the form`(<choice>, <ratio>)` when `choices` is a list of strings or `(<choice>, <ratio>, <key of choice>)` when `choices` is a mapping.
85
+
Returns the best match the best match in form of a tuple or None when there is no match with a score >= score_cutoff. The Tuple will be in the form`(<choice>, <ratio>, <index of choice>)` when `choices` is a list of strings or `(<choice>, <ratio>, <key of choice>)` when `choices` is a mapping.
86
86
87
87
88
88
```console
89
89
> choices = ["Atlanta Falcons", "New York Jets", "New York Giants", "Dallas Cowboys"]
90
90
> process.extractOne("cowboys", choices)
91
-
("dallas cowboys", 90)
91
+
("Dallas Cowboys", 90, 3)
92
92
```
93
93
94
94
=== "C++"
@@ -97,7 +97,7 @@ Finds the best match in a list of choices by comparing them using the provided s
97
97
using rapidfuzz::process::extractOne;
98
98
99
99
// matches is a boost::optional<std::pair>
100
-
// ("dallas cowboys", 90)
100
+
// ("Dallas Cowboys", 90, 3)
101
101
auto matches = extractOne(
102
102
"cowboys",
103
103
std::vector<std::string>{"Atlanta Falcons", "New York Jets", "New York Giants", "Dallas Cowboys"});
0 commit comments