Datasets:
Upload folder using huggingface_hub
Browse files- canonical/canonical_business_entity.csv +0 -0
- evaluation/evaluation_labels.csv +0 -0
- evaluation/ground_truth_entity_map.csv +0 -0
- metadata/README.md +24 -0
- metadata/dataset_summary.json +65 -40
- observed/business_registry.csv +0 -0
- observed/inspection_record.csv +0 -0
- observed/license_record.csv +0 -0
- observed/tax_registry.csv +0 -0
canonical/canonical_business_entity.csv
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
evaluation/evaluation_labels.csv
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
evaluation/ground_truth_entity_map.csv
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
metadata/README.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Business Entity Resolution Dataset - Embedding Friendly Scenario
|
| 2 |
+
|
| 3 |
+
Scenario: `data-splink`
|
| 4 |
+
|
| 5 |
+
This synthetic dataset is designed for Vietnamese text-based Entity Resolution / Record Linkage research.
|
| 6 |
+
It intentionally weakens exact identifiers and creates cross-source textual variation so that language embeddings can contribute beyond traditional fuzzy matching.
|
| 7 |
+
|
| 8 |
+
## Design choices
|
| 9 |
+
|
| 10 |
+
- High `tax_code` missing/noisy rate.
|
| 11 |
+
- Cross-source schema mismatch.
|
| 12 |
+
- Vietnamese text variants: missing diacritics, token merge, token order swap, legal type abbreviation, English translation, short-name-only variants.
|
| 13 |
+
- Hard negatives: similar names, same address, same representative, same short name across different true entities.
|
| 14 |
+
|
| 15 |
+
## Important files
|
| 16 |
+
|
| 17 |
+
- `canonical/canonical_business_entity.csv`: synthetic clean entity layer.
|
| 18 |
+
- `observed/*.csv`: raw source tables with different schemas.
|
| 19 |
+
- `evaluation/ground_truth_entity_map.csv`: record-to-entity ground truth.
|
| 20 |
+
- `evaluation/evaluation_labels.csv`: pair-level labels for model evaluation.
|
| 21 |
+
- `metadata/dataset_summary.json`: quality summary.
|
| 22 |
+
|
| 23 |
+
This notebook exports raw source tables only. It does not create a linkage view in advance.
|
| 24 |
+
The linkage view should be created later inside the matching pipeline notebook.
|
metadata/dataset_summary.json
CHANGED
|
@@ -1,25 +1,30 @@
|
|
| 1 |
{
|
|
|
|
| 2 |
"n_canonical_entities": 8000,
|
| 3 |
"n_observed_records": 20000,
|
|
|
|
| 4 |
"records_by_source": {
|
| 5 |
-
"business_registry":
|
| 6 |
-
"inspection_record":
|
| 7 |
-
"license_record":
|
| 8 |
-
"tax_registry":
|
| 9 |
},
|
| 10 |
"entities_by_cluster_size": {
|
| 11 |
-
"1":
|
| 12 |
-
"2":
|
| 13 |
-
"3":
|
| 14 |
-
"4":
|
| 15 |
-
"5":
|
| 16 |
-
"6":
|
| 17 |
-
"7":
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
| 20 |
"missingness_by_field": {
|
| 21 |
-
"tax_code": 0.
|
| 22 |
-
"ward": 0.
|
| 23 |
"representative_name": 0.0,
|
| 24 |
"business_name": 0.0,
|
| 25 |
"address": 0.0,
|
|
@@ -28,29 +33,49 @@
|
|
| 28 |
"district": 0.0
|
| 29 |
},
|
| 30 |
"top_error_types": {
|
| 31 |
-
"tax_code_missing":
|
| 32 |
-
"
|
| 33 |
-
"
|
| 34 |
-
"
|
| 35 |
-
"
|
| 36 |
-
"
|
| 37 |
-
"
|
| 38 |
-
"
|
| 39 |
-
"
|
| 40 |
-
"
|
| 41 |
-
"
|
| 42 |
-
"
|
| 43 |
-
"
|
| 44 |
-
"
|
| 45 |
-
"
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
"
|
| 53 |
-
"
|
| 54 |
-
"
|
| 55 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"scenario_name": "data-splink",
|
| 3 |
"n_canonical_entities": 8000,
|
| 4 |
"n_observed_records": 20000,
|
| 5 |
+
"n_evaluation_labels": 19688,
|
| 6 |
"records_by_source": {
|
| 7 |
+
"business_registry": 4613,
|
| 8 |
+
"inspection_record": 5305,
|
| 9 |
+
"license_record": 5395,
|
| 10 |
+
"tax_registry": 4687
|
| 11 |
},
|
| 12 |
"entities_by_cluster_size": {
|
| 13 |
+
"1": 2511,
|
| 14 |
+
"2": 1994,
|
| 15 |
+
"3": 1684,
|
| 16 |
+
"4": 1035,
|
| 17 |
+
"5": 486,
|
| 18 |
+
"6": 195,
|
| 19 |
+
"7": 67,
|
| 20 |
+
"8": 14,
|
| 21 |
+
"9": 12,
|
| 22 |
+
"10": 2
|
| 23 |
+
},
|
| 24 |
+
"duplicate_entity_rate": 0.686125,
|
| 25 |
"missingness_by_field": {
|
| 26 |
+
"tax_code": 0.5176,
|
| 27 |
+
"ward": 0.03805,
|
| 28 |
"representative_name": 0.0,
|
| 29 |
"business_name": 0.0,
|
| 30 |
"address": 0.0,
|
|
|
|
| 33 |
"district": 0.0
|
| 34 |
},
|
| 35 |
"top_error_types": {
|
| 36 |
+
"tax_code_missing": 10352,
|
| 37 |
+
"embedding_only_win_candidate": 6857,
|
| 38 |
+
"address_shorten": 6688,
|
| 39 |
+
"remove_diacritics": 6318,
|
| 40 |
+
"merge_tokens": 3343,
|
| 41 |
+
"english_translation": 2598,
|
| 42 |
+
"token_order_swap": 2342,
|
| 43 |
+
"legal_type_abbreviation": 2314,
|
| 44 |
+
"short_name_or_abbrev": 2278,
|
| 45 |
+
"typo": 1902,
|
| 46 |
+
"representative_abbreviation": 1901,
|
| 47 |
+
"representative_remove_diacritics": 1640,
|
| 48 |
+
"representative_token_order_swap": 1264,
|
| 49 |
+
"industry_abbreviation": 1095,
|
| 50 |
+
"tax_code_typo": 1034,
|
| 51 |
+
"address_remove_diacritics": 1005,
|
| 52 |
+
"address_drop_admin": 761,
|
| 53 |
+
"tax_code_wrong": 696,
|
| 54 |
+
"legal_type_abbreviation_light": 551
|
| 55 |
+
},
|
| 56 |
+
"variant_difficulty_distribution": {
|
| 57 |
+
"easy": 0.18175,
|
| 58 |
+
"hard": 0.44605,
|
| 59 |
+
"medium": 0.3722
|
| 60 |
+
},
|
| 61 |
+
"evaluation_pair_type_distribution": {
|
| 62 |
+
"positive_hard": 6000,
|
| 63 |
+
"negative_random": 5999,
|
| 64 |
+
"negative_hard": 3849,
|
| 65 |
+
"positive_regular": 3840
|
| 66 |
+
},
|
| 67 |
+
"evaluation_pair_difficulty_distribution": {
|
| 68 |
+
"hard": 14757,
|
| 69 |
+
"medium": 4432,
|
| 70 |
+
"easy": 499
|
| 71 |
+
},
|
| 72 |
+
"hard_negative_distribution": {
|
| 73 |
+
"same_name_different_legal_type": 1159,
|
| 74 |
+
"similar_name_same_industry": 1020,
|
| 75 |
+
"same_short_name_same_district": 1003,
|
| 76 |
+
"same_address_different_business": 1000,
|
| 77 |
+
"same_representative_different_business": 968,
|
| 78 |
+
"same_short_name_different_province": 871
|
| 79 |
+
},
|
| 80 |
+
"design_note": "Dataset v2 keeps duplicate rate more realistic, weakens tax_code, increases semantic/text variants, and adds hard negatives so embedding has a meaningful role."
|
| 81 |
}
|
observed/business_registry.csv
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
observed/inspection_record.csv
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
observed/license_record.csv
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
observed/tax_registry.csv
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|