From 3a2903f2c048e21da458750deed495bedf86413d Mon Sep 17 00:00:00 2001 From: Jake Lever Date: Fri, 3 Mar 2023 16:47:30 -0800 Subject: [PATCH] Remove debug output and bump version to v2.8.2 --- kindred/EntityRecognizer.py | 2 -- setup.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/kindred/EntityRecognizer.py b/kindred/EntityRecognizer.py index 3645d2a..376e3a9 100644 --- a/kindred/EntityRecognizer.py +++ b/kindred/EntityRecognizer.py @@ -271,13 +271,11 @@ def _processWords(self, sentence): token_ends = { t.endPos:i for i,t in enumerate(sentence.tokens) } snvMatches = list(self.variantRegex1.finditer(sentence.text)) + list(self.variantRegex2.finditer(sentence.text)) - print(snvMatches) for match in snvMatches: snvText = match.group() start,end = match.span() if start in token_starts and end in token_ends and not snvText.lower() in self.variantStopwords: cleaned = cleanupVariant(snvText) - print(snvText, cleaned) potentialLocs = (token_starts[start],token_ends[end]+1) if not potentialLocs in locs: termtypesAndids.append([('variant',"substitution|%s"%cleaned)]) diff --git a/setup.py b/setup.py index fc8df35..6909528 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ if sys.version_info[0] < 3: raise Exception("Kindred requires Python 3") -VERSION='2.8.1' +VERSION='2.8.2' here = path.abspath(path.dirname(__file__))