Skip to content

Commit 7ccd948

Browse files
committed
minor bug fix on schema matching
1 parent 9875171 commit 7ccd948

3 files changed

Lines changed: 5 additions & 8 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
66

77
[project]
88
name = "pyjedai"
9-
version = "0.2.9"
9+
version = "0.3.0"
1010
description = "An open-source library that builds powerful end-to-end Entity Resolution workflows."
1111
readme = "README.md"
1212
authors = [

src/pyjedai/schema/matching.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ def __init__(self):
7171

7272
@staticmethod
7373
def coma_matcher(max_n: int = 0,
74-
strategy: str = "COMA_OPT"
74+
use_instances: bool = False
7575
) -> Coma:
76-
return Coma(max_n, strategy)
76+
return Coma(max_n, use_instances)
7777

7878
@staticmethod
7979
def cupid_matcher(w_struct: float = 0.2,

src/pyjedai/schema/schema_model.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ def __init__(
3333
if matching_type == 'CONTENT':
3434
dataset_1, dataset_2, ground_truth = self.load_content(dataset_1, dataset_2, ground_truth, skip_ground_truth_processing)
3535
elif matching_type == 'COMPOSITE':
36-
dataset_1, dataset_2, ground_truth = self.load_composite(dataset_1, dataset_2)
36+
dataset_1, dataset_2, ground_truth = self.load_composite(dataset_1, dataset_2, ground_truth, skip_ground_truth_processing)
3737
else:
38-
dataset_1, dataset_2, ground_truth = self.load_schema(dataset_1, dataset_2, ground_truth)
38+
dataset_1, dataset_2, ground_truth = self.load_schema(dataset_1, dataset_2, ground_truth, skip_ground_truth_processing)
3939

4040
super().__init__(dataset_1 = dataset_1,
4141
id_column_name_1 = 'id',
@@ -95,9 +95,6 @@ def load_content(self,
9595
ground_truth = pd.merge(ground_truth, dataset_2_columns, on='target', how='left')
9696
ground_truth = ground_truth.drop(columns=['source', 'target'])
9797

98-
self.dataset_1 = dataset_1
99-
self.dataset_2 = dataset_2
100-
self.ground_truth = ground_truth
10198
return dataset_1, dataset_2, ground_truth
10299

103100
def load_composite(self,

0 commit comments

Comments
 (0)