A scoring plugin for csv-reconcile using fingerprint clustering.
Project description
csv-reconcile-fingerprint
A scoring plugin for csv-reconcile using fingerprint clustering. It generates a fingerprint of the input string by normalizing, removing punctuation, and sorting unique tokens. Based on the OpenRefine clustering implementation https://openrefine.org/docs/technical-reference/clustering-in-depth and code from this gist by @pietz.
The resulting strings are compared with Jaccard distance to output a score between 0 and 100.
Installation and Usage
Install this library using pip:
pip install csv-reconcile
This a plugin to the csv reconciliation plugin. So you just have to install csv reconcile package and specify the scorer with '--scorer fingerprint' when initiating the reconciliation service.
Development
To contribute to this library, first checkout the code. Then create a new virtual environment:
cd csv-reconcile-fingerprint
python -m venv venv
source venv/bin/activate
Now install the dependencies and test dependencies:
python -m pip install -e '.[test]'
To run the tests:
python -m pytest
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 csv_reconcile_fingerprint-0.1.8.tar.gz.
File metadata
- Download URL: csv_reconcile_fingerprint-0.1.8.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08db829e922344f121cb715b33760e6d39881b80777a34d0c8f4df6c3939618d
|
|
| MD5 |
da7755fab991ed01574e4de22f003a9b
|
|
| BLAKE2b-256 |
12dac60d12d470c6023356b776d167ac43bb9dc2a84b169fc0253379a839d24e
|
Provenance
The following attestation bundles were made for csv_reconcile_fingerprint-0.1.8.tar.gz:
Publisher:
publish.yml on cutterkom/csv-reconcile-fingerprint
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
csv_reconcile_fingerprint-0.1.8.tar.gz -
Subject digest:
08db829e922344f121cb715b33760e6d39881b80777a34d0c8f4df6c3939618d - Sigstore transparency entry: 198470705
- Sigstore integration time:
-
Permalink:
cutterkom/csv-reconcile-fingerprint@a9ff7e6bf8f09cbca12158d52d75873b60b54e44 -
Branch / Tag:
refs/tags/v.0.1.8 - Owner: https://github.com/cutterkom
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a9ff7e6bf8f09cbca12158d52d75873b60b54e44 -
Trigger Event:
release
-
Statement type:
File details
Details for the file csv_reconcile_fingerprint-0.1.8-py3-none-any.whl.
File metadata
- Download URL: csv_reconcile_fingerprint-0.1.8-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59b6fad4d7fb4094b38e051e6b2c38964d1456b16837b60f4e3311096fd00d45
|
|
| MD5 |
025a3cf84f52cb6cfb5346d1b5259a3a
|
|
| BLAKE2b-256 |
e91151d8459b8ccaf6d17fd8d9edbe1e167e445ab4f89a3abbe5dc9b5354128c
|
Provenance
The following attestation bundles were made for csv_reconcile_fingerprint-0.1.8-py3-none-any.whl:
Publisher:
publish.yml on cutterkom/csv-reconcile-fingerprint
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
csv_reconcile_fingerprint-0.1.8-py3-none-any.whl -
Subject digest:
59b6fad4d7fb4094b38e051e6b2c38964d1456b16837b60f4e3311096fd00d45 - Sigstore transparency entry: 198470708
- Sigstore integration time:
-
Permalink:
cutterkom/csv-reconcile-fingerprint@a9ff7e6bf8f09cbca12158d52d75873b60b54e44 -
Branch / Tag:
refs/tags/v.0.1.8 - Owner: https://github.com/cutterkom
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a9ff7e6bf8f09cbca12158d52d75873b60b54e44 -
Trigger Event:
release
-
Statement type: