Fuzzy 0.4.0 process - CyrilB1531/lodestar GitHub Wiki
Lodestar.Fuzzy 0.4.0. This page is frozen at that release. Read the current documentation for what
mainsays now. A link to a decision or a migration page followsmain, and leaves the archive.
Process
One query against many candidates.
public static class Process
Example — the two best of four.
using Lodestar.Fuzzy;
string[] choices = ["apple pie", "apple tart", "banana bread", "cherry pie"];
IReadOnlyList<ExtractResult> best = Process.Extract("apple pie", choices, limit: 2);
int returned = best.Count; // => 2
double top = best[0].Score; // => 100
Remarks — the equivalent of rapidfuzz's process.extract and process.extractOne, scoring
with Fuzz.WRatio unless a scorer is passed. Which scorer is the decision that
matters most, and the matching index is where that decision is laid out.
Both members take a scoreCutoff, and it is not merely a filter: candidates below it are dropped,
so ExtractOne can return nothing.
Applies to — net10.0, netstandard2.0.
See also — Fuzz, ExtractResult,
Deduplicator.
Members
| Member | What it does |
|---|---|
Process.Extract |
The best candidates, ranked. |
Process.ExtractOne |
The single best, or nothing. |