Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2023 11:36 AM
Here's a solution: use a parameter (here, `return_html = True`) to get an HTML object back, and then call `displayHTML` to actually display the object.
from sparknlp_display import NerVisualizer
visualiser = NerVisualizer()
for i in text_list:
light_result = light_model.fullAnnotate(i)
html = visualiser.display(light_result[0], label_col='ner_chunk', document_col='document', return_html=True)
displayHTML(html)