Skip to content

Commit

Permalink
override fuzzy search parameters for cf vocabulary
Browse files Browse the repository at this point in the history
  • Loading branch information
aperrin66 committed Jul 25, 2024
1 parent 8a9bac3 commit 628effc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pythesint/cf_vocabulary.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
from __future__ import absolute_import

from xml.dom.minidom import parseString

import requests
from rapidfuzz.fuzz import partial_ratio, ratio

from pythesint.json_vocabulary import JSONVocabulary


Expand Down Expand Up @@ -55,3 +57,6 @@ def _fetch_online_data(self, version=None):
cf_list.append(stdname)
return cf_list

def fuzzy_search(self, search_string):
return self._fuzzy_search(search_string, scorer=ratio,
results_limit=10, min_score=90.0)

0 comments on commit 628effc

Please sign in to comment.