trainMd commited on
Commit
a011338
·
verified ·
1 Parent(s): dc83036

Upload folder using huggingface_hub

Browse files
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": 4719,
6
- "inspection_record": 5488,
7
- "license_record": 5130,
8
- "tax_registry": 4663
9
  },
10
  "entities_by_cluster_size": {
11
- "1": 1461,
12
- "2": 2807,
13
- "3": 2347,
14
- "4": 1094,
15
- "5": 242,
16
- "6": 45,
17
- "7": 4
18
- },
19
- "duplicate_entity_rate": 0.8174,
 
 
 
20
  "missingness_by_field": {
21
- "tax_code": 0.2351,
22
- "ward": 0.0229,
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": 4703,
32
- "remove_diacritics": 4013,
33
- "representative_abbreviation": 3152,
34
- "address_shorten": 2786,
35
- "brand_name_only": 2504,
36
- "legal_type_abbreviation": 2222,
37
- "free_text_address": 2221,
38
- "short_name_only": 2154,
39
- "industry_abbreviation": 1930,
40
- "case_variation": 1869,
41
- "english_translation": 1580,
42
- "legal_type_translation": 1580,
43
- "typo": 1447,
44
- "address_format_variation": 1332,
45
- "minor_address_missing": 458
46
- },
47
- "hard_positive_count": 6310,
48
- "hard_negative_entity_count": 2000,
49
- "n_evaluation_labels": 19999,
50
- "evaluation_labels_by_pair_type": {
51
- "random_negative": 10319,
52
- "positive": 4079,
53
- "hard_negative": 3399,
54
- "hard_positive": 2202
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