Skip to content

Commit 973a7be

Browse files
authored
Merge pull request #27 from Georgetown-IR-Lab/1.2.4
1.2.4
2 parents 6b7ebfb + 068920b commit 973a7be

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

constants.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
}
8282

8383
SPACY_LANGUAGE_MAP = {
84-
'ENG': 'es',
84+
'ENG': 'en',
8585
'GER': 'de',
8686
'SPA': 'es',
8787
'POR': 'pt',

quickumls.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ def _select_score(match):
308308

309309
@staticmethod
310310
def _select_longest(match):
311-
return (match[0]['similarity'], (match[0]['end'] - match[0]['start']))
311+
return ((match[0]['end'] - match[0]['start']), match[0]['similarity'])
312312

313313
def _select_terms(self, matches):
314314
sort_func = (

0 commit comments

Comments
 (0)