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.
The old behaviour of get_document_text() can be restored by passing print_html = False.
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.The old behaviour of
get_document_text()
can be restored by passingprint_html = False
.