From ec04e1b3ee6a52eff0fe07b27b75ba878afc6590 Mon Sep 17 00:00:00 2001 From: nikhilranjan7 Date: Thu, 8 Dec 2022 15:41:41 +0400 Subject: [PATCH] Add abbreviation --- .../medical_text_understanding/medical_text_understanding.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/medical_text_understanding/medical_text_understanding.py b/examples/medical_text_understanding/medical_text_understanding.py index 8abc9f2d..594c834c 100644 --- a/examples/medical_text_understanding/medical_text_understanding.py +++ b/examples/medical_text_understanding/medical_text_understanding.py @@ -60,7 +60,8 @@ def main( for pack in packs: if process == "abb": for idx, abv_item in enumerate(pack.get(Abbreviation)): - print(colored("Long form text:", "red"), colored( abv_item.long_form.text, "blue"), "\n") + print(colored("Abbreviation:", "blue"), colored( abv_item.text, "green"), "\n") + print(colored("Long form text:", "blue"), colored( abv_item.long_form.text, "green"), "\n") elif process == "hyp": for idx, detected in enumerate(pack.get(Hyponym)):