Skip to content

Commit

Permalink
Add abbreviation
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilranjan7 committed Dec 8, 2022
1 parent cf02ab5 commit ec04e1b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)):
Expand Down

0 comments on commit ec04e1b

Please sign in to comment.