Fuzzy process - CyrilB1531/lodestar GitHub Wiki
Development build. This page describes
main, not a released package. The latest published Lodestar.Fuzzy is 0.4.0 — read its documentation.
Home › Fuzzy › Fuzzy matching
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. |