GoldenMatch entity resolution functions for DuckDB
Project description
goldenmatch-duckdb
GoldenMatch entity resolution functions for DuckDB.
pip install goldenmatch-duckdb
Usage
import duckdb
import goldenmatch_duckdb
con = duckdb.connect()
goldenmatch_duckdb.register(con)
# Score two strings
con.sql("SELECT goldenmatch_score('John Smith', 'Jon Smyth', 'jaro_winkler')").show()
# Deduplicate a table
con.sql("""
CREATE TABLE customers AS SELECT * FROM (VALUES
('John', 'john@x.com'),
('JOHN', 'john@x.com'),
('Jane', 'jane@y.com')
) AS t(name, email)
""")
con.sql("SELECT goldenmatch_dedupe_table('customers', '{\"exact\": [\"email\"]}')").show()
# Match two tables
con.sql("SELECT goldenmatch_match_tables('prospects', 'reference', '{\"fuzzy\": {\"name\": 0.85}}')").show()
Functions
| Function | Description |
|---|---|
goldenmatch_score(a, b, scorer) |
Score two strings |
goldenmatch_score_pair(rec_a, rec_b, config) |
Score two JSON records |
goldenmatch_explain(rec_a, rec_b, config) |
Explain a match |
goldenmatch_dedupe_table(table, config) |
Deduplicate a DuckDB table |
goldenmatch_match_tables(target, ref, config) |
Match two DuckDB tables |
goldenmatch_dedupe(json, config) |
Deduplicate JSON records |
goldenmatch_match(target_json, ref_json, config) |
Match JSON records |
Requirements
- Python 3.11+
- DuckDB 1.0+
- goldenmatch >= 1.1.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file goldenmatch_duckdb-0.3.0.tar.gz.
File metadata
- Download URL: goldenmatch_duckdb-0.3.0.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
432ab185d08be4acf91797fe1406c2b1a592ac20aa4e76b2b89cdeef27cee91b
|
|
| MD5 |
bfa6af0687737caf1b5539e724d40e8a
|
|
| BLAKE2b-256 |
cd26ef6dafd4541bafafddd69d9a02e3efa92d763b5a8aeaba3da8138d7d3baa
|
File details
Details for the file goldenmatch_duckdb-0.3.0-py3-none-any.whl.
File metadata
- Download URL: goldenmatch_duckdb-0.3.0-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
11d4712d5a6928e86a24cee57c8bcbeb54f4e59a162245e33918514dfff48e64
|
|
| MD5 |
ba02b37fd743b3388f32b6f033e08f40
|
|
| BLAKE2b-256 |
a54f9b2fd852dbddbf216b73fff04c2b88f3a8f06bd7540d4fb2c0c3338fa9be
|