aboutsummaryrefslogtreecommitdiffstats
path: root/fuzzycat/simple.py
diff options
context:
space:
mode:
Diffstat (limited to 'fuzzycat/simple.py')
-rw-r--r--fuzzycat/simple.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/fuzzycat/simple.py b/fuzzycat/simple.py
index ff59ba2..c92b5ae 100644
--- a/fuzzycat/simple.py
+++ b/fuzzycat/simple.py
@@ -24,7 +24,7 @@ from fatcat_openapi_client import ReleaseContrib, ReleaseEntity, ReleaseExtIds
from fuzzycat.common import Reason, Status
from fuzzycat.entities import entity_to_dict
from fuzzycat.grobid_unstructured import grobid_parse_unstructured
-from fuzzycat.matching import match_release_fuzzy
+from fuzzycat.matching import FuzzyReleaseMatcher
from fuzzycat.utils import clean_doi
from fuzzycat.verify import verify
@@ -84,7 +84,8 @@ def close_fuzzy_release_matches(release: ReleaseEntity,
result is only returned if all the candidate matches were ambiguous.
"""
- candidates = match_release_fuzzy(release, size=match_limit, es=es_client)
+ matcher = FuzzyReleaseMatcher(es=es_client, size=match_limit)
+ candidates = matcher.match(release)
if not candidates:
return None