Displacy not recognising custom entities #12859
Replies: 2 comments
-
Hi, thanks for providing the code - I'm able to reproduce this locally. We'll investigate and get back to you once we know more. |
Beta Was this translation helpful? Give feedback.
-
I had another look at this and it looks your To see just the nlp = spacy.load("en_core_web_sm", disable=["ner"])
...
displacy.serve(doc, style="ent") (I don't think the If you want to combine |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to write a custom ner program. I am able to extract those entities properly.The displacy is not able to display them.
In the output I am getting the extracted values just fine. The displacy is working just fine with normal entities.Its just not able to recognise custom labels. It prints the text again with no highlight whatsoever.
Cleaned text being used:
BIOCHEMISTRY KIDNEY FUNCTION TEST (KFT) TEST VALUE UNIT REFERENCE BUN 10.27 mg/dl 7.9 - 20 Serum Urea 22 mg/dl 13 - 40 Serum Creatinine H 0.9 mg/dl 0.5 - 0.8 Serum Calcium 9.0 mg/dl 8.8 - 10.6 Serum Potassium 3.9 mmol/L 3.5 - 5.1 Serum Sodium L 132 mmol/L 136 - 146 Serum Uric Acid 5 mg/dl 2.6 - 6 Urea / Creatinine Ratio 24.44 BUN / Creatinine Ratio 11.41 ~~~ End of report ~~~ LABSMART SAMPLE REPORT Patient Name: Mrs. Dummy Registered on: 09/08/2022 11:35 AM 1001 Age / Sex: 34 YRS / F Collected on: 09/08/2022 Referred By: Dr. Self Received on: 12/08/2022 Reg. no. / UHID: 1001 / Reported on: 09/08/2022 11:35 AM Investigations: Kidney Function Test (KFT) Page 1 of 1 Mr. Sachin Sharma DMLT, Lab Incharge Dr. A. K. Asthana MBBS, MD Pathologist
Beta Was this translation helpful? Give feedback.
All reactions