File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 1
- name : Tests
1
+ name : tests
2
2
3
3
on :
4
4
push :
Original file line number Diff line number Diff line change 5
5
[ ![ FOSSA Status] ( https://app.fossa.com/api/projects/git%2Bgithub.com%2Fpysnippet%2Ffuzzymap.svg?type=shield )] ( https://app.fossa.com/projects/git%2Bgithub.com%2Fpysnippet%2Ffuzzymap?ref=badge_shield )
6
6
[ ![ Tests] ( https://github.com/pysnippet/fuzzymap/actions/workflows/tests.yml/badge.svg )] ( https://github.com/pysnippet/fuzzymap/actions/workflows/tests.yml )
7
7
8
- ## What is the Fuzzy Map?
9
-
10
8
The Fuzzy Map is a polymorph Python dictionary that always returns the value of the closest similar key. This kind of
11
9
dictionary returns the value of the exact key if there is such a key. Otherwise, it will return the value of the most
12
10
similar key satisfying the given ratio. The exact mechanism works when setting a new or replacing an old key in the
13
11
dictionary. If the key is not found and does not match any of the keys by the given ratio, it returns none.
14
12
15
- ## Usage with a real-world example
13
+ ## A real-world example
16
14
17
15
A live data parser collects the coefficients of sports games from different bookmakers at once, and then an analyzer
18
16
tries to find the existing forks. Different bookmakers use different names for the same games. Some of them use the full
You can’t perform that action at this time.
0 commit comments