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
Copy file name to clipboardExpand all lines: README.rst
+56-1Lines changed: 56 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,15 @@ Fuzzymatches uses ``sqlite3``'s Full Text Search to find potential matches.
21
21
22
22
It then uses `probabilistic record linkage <https://en.wikipedia.org/wiki/Record_linkage#Probabilistic_record_linkage>`_ to score matches.
23
23
24
-
Finally it outputs a list of the matches it has found and associated score.
24
+
Finally it outputs a list of the matches it has found and associated score.
25
+
26
+
27
+
Installation
28
+
------------
29
+
30
+
``pip install fuzzymatcher``
31
+
32
+
Note that you will need a build of sqlite which includes FTS4. This seems to be widely included by default, but otherwise `see here <https://www.sqlite.org/fts3.html#compiling_and_enabling_fts3_and_fts4>`_.
25
33
26
34
Usage
27
35
-----
@@ -30,4 +38,51 @@ See `examples.ipynb <https://github.com/RobinL/fuzzymatcher/blob/master/examples
30
38
31
39
You can run these examples interactively `here <https://mybinder.org/v2/gh/RobinL/fuzzymatcher/master?filepath=examples.ipynb>`_.
32
40
41
+
Simple example
42
+
--------------
43
+
44
+
Suppose you have a table called ``df_left`` which looks like this:
45
+
46
+
==== =============
47
+
id ons_name
48
+
==== =============
49
+
0 Darlington
50
+
1 Monmouthshire
51
+
2 Havering
52
+
3 Knowsley
53
+
4 Charnwood
54
+
... etc.
55
+
==== =============
56
+
57
+
And you want to link it to a table ``df_right`` that looks like this:
0 commit comments