From d6ce31ebbffe337ea8495cc01ff2021652080c90 Mon Sep 17 00:00:00 2001 From: hakangunturkun Date: Tue, 14 Apr 2020 15:28:48 -0500 Subject: change in numbering of sentence list --- server.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/server.py b/server.py index fd1285b..0466607 100755 --- a/server.py +++ b/server.py @@ -616,7 +616,7 @@ def sentences(): out_pos = "" out_neg = "" num_abstract = 0 - stress_cellular = "


"+"Sentence(s) describing celluar stress (classified using a deep learning model):
" + stress_cellular = "


"+"Sentence(s) describing celluar stress (classified using a deep learning model):
    " stress_systemic = "Sentence(s) describing systemic stress (classified using a deep learning model):
    " with open(tf_name, "r") as df: all_sents=df.read() @@ -629,12 +629,13 @@ def sentences(): if(pmid+cat0 not in pmid_list): pmid_list.append(pmid+cat0) if(cat0=='stress'): - out_pred = "
  1. "+ text + " PMID:"+pmid+"
    " out4 = predict_sent(text) if(out4 == 'pos'): - out_pos += out_pred + out_pred_pos = "
  2. "+ text + " PMID:"+pmid+"
    " + out_pos += out_pred_pos else: - out_neg += out_pred + out_pred_neg = "
  3. "+ text + " PMID:"+pmid+"
    " + out_neg += out_pred_neg out1="

    "+gene0 + " and " + cat0 + "

    \n" if len(pmid_list)>1: out2 = str(num_abstract) + ' sentences in ' + str(len(pmid_list)) + ' studies' + "

    " -- cgit v1.2.3