Closed donghyun208 closed 6 years ago
The two sort functions _select_score and _select_longest are identical: https://github.com/Georgetown-IR-Lab/QuickUMLS/blob/48564073c1fa85fb6c35e99b3c605545745e7ba4/quickumls.py#L265-L271
_select_score
_select_longest
_select_longest should be:
def _select_longest(match): return ((match[0]['end'] - match[0]['start']), match[0]['similarity'])
fixed in 1.2.4. Thanks for the report!
The two sort functions
_select_score
and_select_longest
are identical: https://github.com/Georgetown-IR-Lab/QuickUMLS/blob/48564073c1fa85fb6c35e99b3c605545745e7ba4/quickumls.py#L265-L271_select_longest
should be: