-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
GH-680: rendering HTML with highlighted named entities #933
Conversation
Hi @alanakbik ! |
Looks like it's test_visual that is causing a black formatting error. I'll reformat! |
@azeevg thanks for contributing this. Could you add a minimal full example code snippet on how to call this visualization method to this PR description? This will make it easier for other community members to use the new function! |
@alanakbik , I updated my first comment. |
@azeevg thanks for adding this - looks great! |
👍 |
1 similar comment
👍 |
Seems like the rendering code was moved to a new location just before the 4.3 release, so the code snippet should now be something like:
(I'd suggest a change to the 4.3 release notes, but not sure how to do that.) |
@dcabo yes you're right, thanks for spotting this - just updated the release notes! |
Added rendering HTML with highlighted entities. It's possible to override colors and labels of entities. One can also render part of html not wrapped by body and html tags - it can be useful when one needs to concatenate few htmls.
Usage
sentence.html

Custom labels and colors could be used.
If we want to integrate
html
into another web page, we could usewrap_page
parameter to produce html without and tags wrapping it.Now we can substitute
html
into any other html code.