Login to follow
FuzzyWuzzy

FuzzyWuzzy (ODC)

Stable version 1.1.0 (Compatible with ODC)
Uploaded on 26 August 2024 by valantic LCS
FuzzyWuzzy

FuzzyWuzzy (ODC)

Documentation
1.1.0

Usage


Simple Ratio

Ratio("mysmilarstring","myawfullysimilarstirng") 72 Ratio("mysmilarstring","mysimilarstring") 97


Partial Ratio

PartialRatio("similar", "somewhresimlrbetweenthisstring") 71


Token Sort Ratio

TokenSortRatio("order words out of","  words out of order") 100 PartialTokenSortRatio("order words out of","  words out of order") 100


Token Set Ratio

TokenSetRatio("fuzzy was a bear", "fuzzy fuzzy fuzzy bear") 100 PartialTokenSetRatio("fuzzy was a bear", "fuzzy fuzzy fuzzy bear") 100


Token Initialism Ratio

TokenInitialismRatio("NASA", "National Aeronautics and Space Administration"); 89 TokenInitialismRatio("NASA", "National Aeronautics Space Administration"); 100 TokenInitialismRatio("NASA", "National Aeronautics Space Administration, Kennedy Space Center, Cape Canaveral, Florida 32899"); 53 PartialTokenInitialismRatio("NASA", "National Aeronautics Space Administration, Kennedy Space Center, Cape Canaveral, Florida 32899"); 100


Token Abbreviation Ratio

TokenAbbreviationRatio("bl 420", "Baseline section 420", PreprocessMode.Full); 40 PartialTokenAbbreviationRatio("bl 420", "Baseline section 420", PreprocessMode.Full); 50      


Weighted Ratio

WeightedRatio("The quick brown fox jimps ofver the small lazy dog", "the quick brown fox jumps over the small lazy dog") 95


Process

Process_ExtractOne("cowboys", new[] { "Atlanta Falcons", "New York Jets", "New York Giants", "Dallas Cowboys"}) (string: Dallas Cowboys, score: 90, index: 3)
Process_ExtractTop("goolge", new[] { "google", "bing", "facebook", "linkedin", "twitter", "googleplus", "bingnews", "plexoogl" }, limit: 3); [(string: google, score: 83, index: 0), (string: googleplus, score: 75, index: 5), (string: plexoogl, score: 43, index: 7)]


Process_ExtractAll("goolge", new [] {"google", "bing", "facebook", "linkedin", "twitter", "googleplus", "bingnews", "plexoogl" }) [(string: google, score: 83, index: 0), (string: bing, score: 22, index: 1), (string: facebook, score: 29, index: 2), (string: linkedin, score: 29, index: 3), (string: twitter, score: 15, index: 4), (string: googleplus, score: 75, index: 5), (string: bingnews, score: 29, index: 6), (string: plexoogl, score: 43, index: 7)] // score cutoff Process_ExtractAll("goolge", new[] { "google", "bing", "facebook", "linkedin", "twitter", "googleplus", "bingnews", "plexoogl" }, cutoff: 40) [(string: google, score: 83, index: 0), (string: googleplus, score: 75, index: 5), (string: plexoogl, score: 43, index: 7)]


Process_ExtractSorted("goolge", new [] {"google", "bing", "facebook", "linkedin", "twitter", "googleplus", "bingnews", "plexoogl" }) [(string: google, score: 83, index: 0), (string: googleplus, score: 75, index: 5), (string: plexoogl, score: 43, index: 7), (string: facebook, score: 29, index: 2), (string: linkedin, score: 29, index: 3), (string: bingnews, score: 29, index: 6), (string: bing, score: 22, index: 1), (string: twitter, score: 15, index: 4)]