Skip to content

Commit afb9789

Browse files
committed
Remove random storage threshold
1 parent 2be06c8 commit afb9789

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

aleph/logic/compare.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# on as many of these matches as we can, then build a regression
1010
# model which properly weights the value of a matching property
1111
# based upon it's type.
12-
FP_WEIGHT = 0.5
12+
FP_WEIGHT = 0.6
1313
MATCH_WEIGHTS = {
1414
registry.text: 0,
1515
registry.name: 0, # because we already compare fingerprints
@@ -55,6 +55,6 @@ def compare_fingerprints(left, right):
5555
right_list = ensure_list(right.get('fingerprints'))
5656
for (left, right) in itertools.product(left_list, right_list):
5757
similarity = jaro(left, right)
58-
score = similarity * dampen(3, 20, max(left, right, key=len))
58+
score = similarity * dampen(3, 20, min(left, right, key=len))
5959
result = max(result, score)
6060
return result * FP_WEIGHT

aleph/logic/xref.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ def xref_item(item, collection_id=None):
4444
for result in results:
4545
result = unpack_result(result)
4646
score = compare(item, result)
47-
if score < 0.1:
48-
continue
4947
log.info("Xref [%.1f]: %s <=> %s", score, name, result.get('name'))
5048
obj = Match()
5149
obj.entity_id = entity_id

0 commit comments

Comments
 (0)