Beispiel #1
0
 def __init__(
     self, store, max_candidates=10, min_similarity=75, max_length=500, comparer=None
 ):
     if comparer is None:
         comparer = terminology.TerminologyComparer(max_length)
     super().__init__(
         store,
         max_candidates,
         min_similarity=10,
         max_length=max_length,
         comparer=comparer,
     )
     self.addpercentage = False
     self.match_info = {}
Beispiel #2
0
 def test_basic(self):
     """Tests basic functionality"""
     termmatcher = terminology.TerminologyComparer()
     assert termmatcher.similarity("Open the file", "file") > 75