Closed HasanGokce closed 3 years ago
find_keyword executed for assay
find_keyword executed for specimen
find_keyword executed for gene
The BioFire® <div id="covid19-b3f848d7-6628-44a8-b350-2ae33aace825">COVID-19</div> Test and Respiratory
Panel 2.1 (RP2.1) are rapid, fully automated <div id="covid19-8d823cd6-a42b-437c-bd58-c5324deec56f">assay</div>s
for the detection of severe acute respiratory <div id="covid19-a4dfee59-0a84-4a4e-81a4-907f5196af14">syndrome</div>
coronavirus 2 (SARS-CoV-2) in nasopharyngeal swabs. In the case of the RP2.1, an additional 21 viral
and bacterial pathogens can be detected. Both tests have received emergency use authorization from the
U.S. Food & Drug Administration and Interim Order authorization from Health Canada
for use in clinical laboratories. We evaluated the performance characteristics of these tests in comparison to a
laboratory-developed real-time PCR <div id="covid19-3611eb46-47d3-4515-88cd-0a5930fec004">assay</div> targeting
the
viral RNA-dependent RNA polymerase and E <div id="covid19-6bb3c9b4-500d-4ad7-b422-6cd03eb64851">gene</div>s.
A total of 78 tests were performed using the BioFire <div id="covid19-22c2135f-3dbe-44d0-8b57-901e159bd6c3">COVID-19</div>
Test, including 30 clinical <div id="covid19-272cc4f5-9bc5-4c87-944c-00ceee955a37">specimen</div>s and 48 tests in a
limit of detection study; 57 tests were performed using the RP2.1 for evaluation of SARS-CoV-2 detection, including 30
clinical <div id="covid19-66ec475b-a486-4b29-ab7e-e597e45f7e03">specimen</div>s and 27 tests for limit of detection.
Results showed 100% concordance between the BioFire <div id="covid19-e47ae125-7edc-44df-9bef-59a906d4bb23">assay</div>s
and the laboratory-developed test for all clinical samples tested, and acceptable
performance of both BioFire assays at their stated limits of detection. Conclusively, the BioFire
<div id="covid19-f4e7adf8-49f4-4130-b362-adc90c68e18d"> COVID-19</div> Test and RP2.1 are highly sensitive assays
that can be effectively used in the clinical laboratory
for rapid SARS-CoV-2 testing.
being diag<div id="covid19-fab12c6e-9ca9-4a80-a8ff-9ce67faee8f8">nose</div>d with
String: Effect of COVID-19 on organ. Health organization
x = re.search(r"[^>]\borgan\b", txt)
gives <re.Match object; span=(21, 27), match=' organ'>
Plural form of the word can be found with this regular expression:
r"[^>]\borgans?\b"
x = re.search(rf"[^>]\b(?=\w){label}\b(?!\w)", text, re.IGNORECASE)
x = re.search(r"[^>]\b{label}s?\b(?!\w)", text, re.IGNORECASE)
x = re.search(rf"\b(?!>){label}\b(?!<)", text, re.IGNORECASE)
*
Issue type:
task
Parent issue: #50Problem
For example, we want to annotate word "organ". Default find() method cannot be used for this sentence. Because we don't want to create an annotation for word organ inside of word "organization".
Effect of COVID-19 on <div id="a">organ</div>. Health <div id="b">organ</div>ization
Solution
This regular expression might be used a solution, and it can be improved for future cases:
(^A-Z^a-z)keyword(^A-Z^a-z)
(^A-Z^a-z)organ(^A-Z^a-z)
( for this example)x = re.search(rf"\b(?!>){label}\b(?!<)", text, re.IGNORECASE)
pattern = rf'\b(?!>){label}\b(?!<)'