MCPcopy Index your code
hub / github.com/dedupeio/dedupe

github.com/dedupeio/dedupe @v3.0.3

Chat with this repo
repository ↗ · DeepWiki ↗ · release v3.0.3 ↗ · + Follow
625 symbols 1,734 edges 55 files 74 documented · 12% updated 11mo ago★ 4,48877 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Dedupe Python Library

Tests Passingcodecov

dedupe is a python library that uses machine learning to perform fuzzy matching, deduplication and entity resolution quickly on structured data.

dedupe will help you:

  • remove duplicate entries from a spreadsheet of names and addresses
  • link a list with customer information to another with order history, even without unique customer IDs
  • take a database of campaign contributions and figure out which ones were made by the same person, even if the names were entered slightly differently for each record

dedupe takes in human training data and comes up with the best rules for your dataset to quickly and automatically find similar records, even with very large databases.

Important links

  • Documentation: https://docs.dedupe.io/
  • Repository: https://github.com/dedupeio/dedupe
  • Issues: https://github.com/dedupeio/dedupe/issues
  • Mailing list: https://groups.google.com/forum/#!forum/open-source-deduplication
  • Examples: https://github.com/dedupeio/dedupe-examples

dedupe library consulting

If you or your organization would like professional assistance in working with the dedupe library, Dedupe.io LLC offers consulting services. Read more about pricing and available services here.

Tools built with dedupe

Dedupe.io

A cloud service powered by the dedupe library for de-duplicating and finding matches in your data. It provides a step-by-step wizard for uploading your data, setting up a model, training, clustering and reviewing the results.

Dedupe.io also supports record linkage across data sources and continuous matching and training through an API.

For more, see the Dedupe.io product site, tutorials on how to use it, and differences between it and the dedupe library.

Dedupe is well adopted by the Python community. Check out this blogpost, a YouTube video on how to use Dedupe with Python and a Youtube video on how to apply Dedupe at scale using Spark.

csvdedupe

Command line tool for de-duplicating and linking CSV files. Read about it on Source Knight-Mozilla OpenNews.

Installation

Using dedupe

If you only want to use dedupe, install it this way:

pip install dedupe

Familiarize yourself with dedupe's API, and get started on your project. Need inspiration? Have a look at some examples.

Developing dedupe

We recommend using virtualenv and virtualenvwrapper for working in a virtualized development environment. Read how to set up virtualenv.

Once you have virtualenvwrapper set up,

mkvirtualenv dedupe
git clone https://github.com/dedupeio/dedupe.git
cd dedupe
pip install -e . --config-settings editable_mode=compat
pip install -r requirements.txt

If these tests pass, then everything should have been installed correctly!

pytest

Afterwards, whenever you want to work on dedupe,

workon dedupe

Testing

Unit tests of core dedupe functions

pytest

Test using canonical dataset from Bilenko's research

Using Deduplication

python -m pip install -e ./benchmarks
python benchmarks/benchmarks/canonical.py

Using Record Linkage

python -m pip install -e ./benchmarks
python benchmarks/benchmarks/canonical_matching.py

Team

  • Forest Gregg, DataMade
  • Derek Eder, DataMade

Credits

Dedupe is based on Mikhail Yuryevich Bilenko's Ph.D. dissertation: Learnable Similarity Functions and their Application to Record Linkage and Clustering.

Errors / Bugs

If something is not behaving intuitively, it is a bug, and should be reported. Report it here

Note on Patches/Pull Requests

  • Fork the project.
  • Make your feature addition or bug fix.
  • Send us a pull request. Bonus points for topic branches.

Copyright

Copyright (c) 2022 Forest Gregg and Derek Eder. Released under the MIT License.

Third-party copyright in this distribution is noted where applicable.

Citing Dedupe

If you use Dedupe in an academic work, please give this citation:

Forest Gregg and Derek Eder. 2022. Dedupe. https://github.com/dedupeio/dedupe.

Core symbols most depended-on inside this repo

apply
called by 33
dedupe/canopy_index.py
join
called by 27
dedupe/core.py
pop
called by 21
dedupe/labeler.py
index
called by 20
dedupe/index.py
remove
called by 18
dedupe/labeler.py
close
called by 13
dedupe/core.py
search
called by 8
dedupe/index.py
_print
called by 7
dedupe/convenience.py

Shape

Method 302
Function 204
Class 119

Languages

Python85%
TypeScript15%

Modules by API surface

docs/_static/js/jquery.min.js86 symbols
dedupe/predicates.py64 symbols
dedupe/api.py54 symbols
dedupe/labeler.py42 symbols
dedupe/predicate_functions.py35 symbols
tests/test_predicate_functions.py30 symbols
tests/test_predicates.py25 symbols
dedupe/core.py22 symbols
dedupe/training.py18 symbols
dedupe/variables/base.py14 symbols
dedupe/datamodel.py14 symbols
tests/test_core.py13 symbols

Dependencies from manifests, versioned

BTrees4.1.4 · 1×
affinegap1.3 · 1×
categorical-distance1.9 · 1×
dedupe_Levenshtein_search
doublemetaphone
haversine0.4.1 · 1×
highered0.2.0 · 1×
numpy1.20 · 1×
simplecosine1.2 · 1×
sphinx4.3.0 · 1×
sphinx-rtd-theme0.5.1 · 1×

For agents

$ claude mcp add dedupe \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact