Commit
β’
0875f46
1
Parent(s):
1183264
Update app.py
Browse files
app.py
CHANGED
@@ -13,29 +13,7 @@ model = BertForSequenceClassification.from_pretrained("owaiskha9654/PICO_Evidenc
|
|
13 |
tokenizer = BertTokenizer.from_pretrained('owaiskha9654/PICO_Evidence_Classification_Model', do_lower_case=True)
|
14 |
nltk.download('punkt')
|
15 |
|
16 |
-
examples = [ """In addition to their essential catalytic role in protein biosynthesis,
|
17 |
-
aminoacyl tRNA synthetases participate into numerous other functions,
|
18 |
-
including regulation of gene expression and amino acid biosynthesis via
|
19 |
-
transamidation pathways. labor 48 labor induced amniotomy oxytocin.
|
20 |
-
Herein, we describe a class of aminoacyl tRNA
|
21 |
-
synthetase like HisZ proteins based on the catalytic core of the contemporary
|
22 |
-
class II histidyl tRNA synthetase whose members lack aminoacylation activity
|
23 |
-
but are instead essential components of the first enzyme in histidine biosynthesis
|
24 |
-
ATP phosphoribosyltransferase (HisG).""",
|
25 |
-
"""total 164 female breast cancer patients treated anthracyclines received anthracycline-based
|
26 |
-
chemotherapy = 85 = 79 dexrazoxane maximum cycles. participants received amlodipine 5 daily lisinopril 5 daily
|
27 |
-
secondary outcomes death noncardiac repeat revascularization procedures pci cabg"""
|
28 |
-
""" Prediction of the function of HisZ in Lactococcus
|
29 |
-
lactis was assisted by comparative genomics, a technique that revealed a link between the
|
30 |
-
presence or the absence of HisZ and a systematic variation in the length of the HisG polypeptide.""",
|
31 |
-
"""HisZ is required for histidine prototrophy, and three other lines of evidence support the direct
|
32 |
-
involvement of HisZ in the transferase function. 1) Genetic experiments demonstrate that
|
33 |
-
complementation of an in-frame deletion of HisG from Escherichia coli (which does not possess HisZ)
|
34 |
-
requires both HisG and HisZ from L. lactis. 2) Coelution of HisG and HisZ during affinity chromatography
|
35 |
-
provides evidence of direct physical interaction. 3) Both HisG and HisZ are required for catalysis of
|
36 |
-
the ATP phosphoribosyltransferase reaction. This observation of a common protein domain
|
37 |
-
linking amino acid biosynthesis and protein synthesis implies an early connection between
|
38 |
-
the biosynthesis of amino acids and proteins."""]
|
39 |
|
40 |
|
41 |
def PICO_Tagger(text):
|
@@ -74,10 +52,10 @@ def PICO_Tagger(text):
|
|
74 |
|
75 |
|
76 |
title = "Utilizing BioBERT for PICO Evidence Summarization"
|
77 |
-
description = "The traditional machine learning models give a lot of pain when we do not have sufficient labeled data for the specific task or domain we care about to train a reliable model. Transfer learning allows us to deal with these scenarios by leveraging the already existing labeled data of some related task or domain. We try to store this knowledge gained in solving the source task in the source domain and apply it to our problem of interest.In this work, I have utilized the dataset from the paper published in IEEE Journal of Biomedical and Health Informatics <a href=\"https://ieeexplore.ieee.org/document/9056501\">Aceso: PICO-Guided Evidence Summarization on Medical Literature</a>"
|
78 |
|
79 |
text1 = (
|
80 |
-
"<center> Author: Owais Ahmad Data Scientist at <b> Thoucentric </b> <a href=\"https://www.linkedin.com/in/owaiskhan9654/\">Visit Profile</a> <br></center>"
|
81 |
|
82 |
"<center> Model Trained Kaggle Kernel <a href=\"https://www.kaggle.com/code/owaiskhan9654/utilizing-biobert-for-pico-evidence-summarization\">Link</a> <br></center>"
|
83 |
|
|
|
13 |
tokenizer = BertTokenizer.from_pretrained('owaiskha9654/PICO_Evidence_Classification_Model', do_lower_case=True)
|
14 |
nltk.download('punkt')
|
15 |
|
16 |
+
examples = [ """In addition to their essential catalytic role in protein biosynthesis, aminoacyl tRNA synthetases participate into numerous other functions, including regulation of gene expression and amino acid biosynthesis via transamidation pathways. labor 48 labor induced amniotomy oxytocin. Herein, we describe a class of aminoacyl tRNA synthetase like HisZ proteins based on the catalytic core of the contemporary class II histidyl tRNA synthetase whose members lack aminoacylation activity but are instead essential components of the first enzyme in histidine biosynthesis ATP phosphoribosyltransferase (HisG).""", """total 164 female breast cancer patients treated anthracyclines received anthracycline-based chemotherapy dexrazoxane maximum cycles. participants received amlodipine 5 daily lisinopril 5 daily secondary outcomes death noncardiac repeat revascularization procedures pci cabg""", """ Prediction of the function of HisZ in Lactococcus lactis was assisted by comparative genomics, a technique that revealed a link between the presence or the absence of HisZ and a systematic variation in the length of the HisG polypeptide.""", """HisZ is required for histidine prototrophy, and three other lines of evidence support the direct involvement of HisZ in the transferase function. 1) Genetic experiments demonstrate that complementation of an in-frame deletion of HisG from Escherichia coli (which does not possess HisZ) requires both HisG and HisZ from L. lactis. 2) Coelution of HisG and HisZ during affinity chromatography provides evidence of direct physical interaction. 3) Both HisG and HisZ are required for catalysis of the ATP phosphoribosyltransferase reaction. This observation of a common protein domain linking amino acid biosynthesis and protein synthesis implies an early connection between the biosynthesis of amino acids and proteins."""]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
|
18 |
|
19 |
def PICO_Tagger(text):
|
|
|
52 |
|
53 |
|
54 |
title = "Utilizing BioBERT for PICO Evidence Summarization"
|
55 |
+
description = "The traditional machine learning models give a lot of pain when we do not have sufficient labeled data for the specific task or domain we care about to train a reliable model. Transfer learning allows us to deal with these scenarios by leveraging the already existing labeled data of some related task or domain. We try to store this knowledge gained in solving the source task in the source domain and apply it to our problem of interest. In this work, I have utilized the dataset from the paper published in IEEE Journal of Biomedical and Health Informatics <a href=\"https://ieeexplore.ieee.org/document/9056501\">Aceso: PICO-Guided Evidence Summarization on Medical Literature</a>"
|
56 |
|
57 |
text1 = (
|
58 |
+
"<center> Author: Owais Ahmad Β©2022 Data Scientist at <b> Thoucentric </b> <a href=\"https://www.linkedin.com/in/owaiskhan9654/\">Visit Profile</a> <br></center>"
|
59 |
|
60 |
"<center> Model Trained Kaggle Kernel <a href=\"https://www.kaggle.com/code/owaiskhan9654/utilizing-biobert-for-pico-evidence-summarization\">Link</a> <br></center>"
|
61 |
|