umcu / negation-detection

Negation detection in Dutch clinical text.
GNU General Public License v3.0
3 stars 0 forks source link

Highlight annotated entity when printing document text #29

Closed lcreteig closed 2 years ago

lcreteig commented 2 years ago

Adds functionality to get_document_text() to display the text in html, and highlight the annotated entity. This makes the entities easier to spot in large texts, which should come in handy when inspecting which annotations are correctly/wrongly predicted.

image

The old behaviour of get_document_text() can be restored by passing print_html = False.