about summary refs log tree commit diff
path: root/more_functions.py
diff options
context:
space:
mode:
Diffstat (limited to 'more_functions.py')
-rwxr-xr-xmore_functions.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/more_functions.py b/more_functions.py
index 7c21c2a..8162acc 100755
--- a/more_functions.py
+++ b/more_functions.py
@@ -3,11 +3,9 @@ from nltk.tokenize import sent_tokenize
 import os
 import re
 
-from nltk.util import pr
 from addiction_keywords import *
 from gene_synonyms import *
 import ast
-from flask import session
 
 global pubmed_path
 
@@ -29,7 +27,6 @@ def getabstracts(gene,query):
         + " | xtract -pattern PubmedArticle -element MedlineCitation/PMID,ArticleTitle,AbstractText|sed \"s/-/ /g\"").read()
     return(abstracts)
 
-sentences_ls=[]
 def getSentences(gene, sentences_ls):
     out=str()
     # Keep the sentence only if it contains the gene