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__))