RepositoryJupyter NotebookUSUnited States
vintasoftware

vintasoftware/entity-embed

PyTorch library for transforming entities like companies, products, etc. into vectors to support scalable Record Linkage / Entity Resolution using Approximate Nearest Neighbors.

162stars
16forks
2issues
2views

🔍 Entity Embed: Biến thực thể thành vector để khớp bản ghi thực thể

Thư viện PyTorch dùng học sâu biến thực thể như công ty, sản phẩm thành vector, hỗ trợ tìm kiếm gần đúng (ANN) để khớp bản ghi thực thể một cách mở rộng.

Entity Embed là một thư viện PyTorch giúp chuyển đổi các thực thể như công ty, sản phẩm... thành các vectơ trong không gian nhúngngụm chiều. Thông qua hàm mất mát đối lập (contrastive loss), các vectơ này được học để giữ các bản ghi tương tự gần nhau và bản ghi khác biệt xa nhau. Nhờ đó, tìm kiếm gần đúng (ANN) trở nên khả thi và nhanh chóng, tìm ra hàng ngàn cặp bản ghi trùng lặp mỗi giây trên một CPU.

✨ Điểm nổi bật

  • Chuyển đổi thực thể thành vectơ: Dùng mô hình học sâu để biến bản ghi thành vectơ trong không gian nhúngngụm chiều.
  • Hàm mất mát đối lập: Tối ưu để các bản ghi tương tự gần nhau, bản ghi khác xa nhau trong không gian nhúngngụm.
  • Tìm kiếm ANN mở rộng: Tìm ra hàng ngàn cặp ứng viên trùng lặp mỗi giây trên CPU.
  • Recall ~0.99: Đạt hiệu suất cao với tỉ lệ cặp thực thể dưới 100 trên nhiều bộ dữ liệu.
  • Tập trung vào Recall: Ưu tiên độ phủ (recall) cao, phù hợp cho giai đoạn chặn/lập chỉ số (blocking/indexing) trong pipeline khớp thực thể.
  • Dựa trên AutoBlock: Là một trường hợp đặc biệt của mô hình AutoBlock do Amazon nghiên cứu.
  • Hỗ trợ hai nhiệm vụ chính: Deduplication (dữ liệu bẩn) và Record Linkage (dữ liệu sạch).
  • Tích hợp dễ dàng: Cung cấp ví dụ Jupyter Notebook chi tiết, hỗ trợ chạy trên Google Colab.

💡 Vì sao đáng chú ý

Thay vì so sánh từng cặp bản ghi — một cách chậm chạp và không mở rộng được — Entity Embed biến các bản ghi thành vectơ để tìm kiếm gần đúng (ANN). Cách tiếp cận này giải quyết nút cổ chai (bottleneck) phổ biến trong quy trình khớp thực thể: giai đoạn chặn (blocking). Thư viện phù hợp khi cần lọc nhanh một tập ứng viên tiềm năng trùng lặp, sau đó dùng bộ phân lớp đôi để chọn cặp khớp chính xác.


#EntityResolution #RecordLinkage #DeepLearning #ApproximateNearestNeighbors #TiniX

Similar Projects

Discover other similar projects and AI models.

RepositoryPython
moj-analytical-services/splink

Fast, accurate and scalable probabilistic data linkage with support for multiple SQL backends

2.6k
Nov 11, 2026
RepositoryC++
tensorflow/tensorflow

An Open Source Machine Learning Framework for Everyone

201.8k
Nov 23, 2026
RepositoryPython
maxharlow/csvmatch

🔎 Finds fuzzy matches between CSV files

191
Mar 26, 2025
RepositoryPython
dell-research-harvard/linktransformer

A convenient way to link, deduplicate, aggregate and cluster data(frames) in Python using deep learning

149
Oct 15, 2026
Repository
OlivierBinette/Awesome-Entity-Resolution

List of entity resolution software and resources.

140
Mar 24, 2026
RepositoryPython
benseverndev-oss/goldenmatch

Zero-config entity resolution feeding a durable identity layer: messy records from any source become stable golden entities, a Customer 360 with provenance, merge/split and audit. Fellegi-Sunter beats hand-tuned Splink. Arrow-native/Rust, 250M rows in 11.2 min. Python + edge TypeScript (WASM), SQL-native in Postgres & DuckDB, 97 MCP tools + REST.

139
Nov 17, 2026
Repository
ropeladder/record-linkage-resources

Resources for tackling record linkage / deduplication / data matching problems

127
Feb 22, 2024
RepositoryPython
AI-team-UoA/pyJedAI

An open-source library that leverages Python’s data science ecosystem to build powerful end-to-end Entity Resolution workflows.

101
Mar 22, 2026
RepositoryPython
Wikidata/soweego

Link Wikidata items to large catalogs

98
Nov 16, 2026