Skip to content

Commit

Permalink
Remove debug output and bump version to v2.8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jakelever committed Mar 4, 2023
1 parent 10bae55 commit 3a2903f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions kindred/EntityRecognizer.py
Expand Up @@ -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)])
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -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__))

Expand Down

0 comments on commit 3a2903f

Please sign in to comment.