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

Add NEL visualisation (links to entities in a knowledge base) #9199

Merged
merged 10 commits into from
Sep 23, 2021

Conversation

shigapov
Copy link
Contributor

Description

Current NER visualiser cannot show links to entities in a knowledge base. This PR adds NEL visualisation using manual=True option in displaCy.

Types of change

This is enhancement, see issue 9129.

Checklist

  • I confirm that I have the right to submit this contribution under the project's MIT license.
  • I ran the tests, and all new and existing tests passed.
  • My changes don't require a change to the documentation, or if they do, I've added all required information.

@svlandeg svlandeg added enhancement Feature requests and improvements feat / nel Feature: Named Entity linking feat / visualizers Feature: Built-in displaCy and other visualizers labels Sep 13, 2021
Copy link
Member

@svlandeg svlandeg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR, much appreciated! I have some small comments, but I think this looks good in general. I'll also ping Ines to see whether she might want to review, too :-)

spacy/displacy/render.py Outdated Show resolved Hide resolved
spacy/displacy/templates.py Outdated Show resolved Hide resolved
@svlandeg svlandeg requested a review from ines September 15, 2021 20:45
@svlandeg svlandeg linked an issue Sep 15, 2021 that may be closed by this pull request
spacy/displacy/render.py Outdated Show resolved Hide resolved
svlandeg and others added 2 commits September 16, 2021 09:22
Co-authored-by: Renat Shigapov <57352291+shigapov@users.noreply.github.com>
spacy/displacy/templates.py Outdated Show resolved Hide resolved
spacy/displacy/templates.py Outdated Show resolved Hide resolved
spacy/displacy/render.py Outdated Show resolved Hide resolved
Co-authored-by: Renat Shigapov <57352291+shigapov@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature requests and improvements feat / nel Feature: Named Entity linking feat / visualizers Feature: Built-in displaCy and other visualizers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Displacy vizualization for entity linking
3 participants