From 9ed004e90d8ecefcb269df17fae75feb20f5ac9d Mon Sep 17 00:00:00 2001 From: Kevin Hu Date: Fri, 21 Mar 2025 13:16:34 +0800 Subject: [PATCH] Refa: control the simi for entity resolution. (#6386) ### What problem does this PR solve? #6352 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- graphrag/entity_resolution.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphrag/entity_resolution.py b/graphrag/entity_resolution.py index e00d3bf77..fad9513ab 100644 --- a/graphrag/entity_resolution.py +++ b/graphrag/entity_resolution.py @@ -217,7 +217,7 @@ class EntityResolution(Extractor): if editdistance.eval(a, b) <= min(len(a), len(b)) // 2: return True - if len(set(a) & set(b)) > 0: + if len(set(a) & set(b)) > 1: return True return False