Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

visualize_ner() does not remove duplicate labels for spans. #40

Closed
narayanacharya6 opened this issue Aug 19, 2022 · 0 comments · Fixed by #41
Closed

visualize_ner() does not remove duplicate labels for spans. #40

narayanacharya6 opened this issue Aug 19, 2022 · 0 comments · Fixed by #41

Comments

@narayanacharya6
Copy link
Contributor

I think the issue is best illustrated using a picture:
image

So my doc has multiple spans with label LOC or ORG. I would expect the selector component here only show me these two values. However, looking at the code for visualize_ner() I see we do not remove duplicates from labels for different spans. I am not sure if this has been there all along or something changed with recent versions of streamlit.

I am using the following version of the packages:

spacy-streamlit           1.0.4
streamlit                 1.12.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant