From 2e837167272e88e62024536a15df3620f43bd5c0 Mon Sep 17 00:00:00 2001 From: akleinau Date: Sat, 18 Sep 2021 10:45:08 +0200 Subject: [PATCH] fixes #74 --- quickumls/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quickumls/core.py b/quickumls/core.py index 7164d18..1fa3673 100644 --- a/quickumls/core.py +++ b/quickumls/core.py @@ -445,11 +445,11 @@ def match(self, text, best_match=True, ignore_syntax=False): parsed = self.nlp(u'{}'.format(text)) # pass in parsed spacy doc to get concept matches - matches = self._match(parsed) + matches = self._match(parsed, best_match, ignore_syntax) return matches - def _match(self, doc, best_match=True, ignore_syntax=False): + def _match(self, doc, best_match, ignore_syntax): """Gathers ngram matches given a spaCy document object. [extended_summary]