Пример #1
0
def view_single_sentence_graph(sentence, modifiers, targets):
    context = markup_context_document(sentence, modifiers, targets)
    class_result = classrslts(context_document=context, exam_type="Chest X-Ray", report_text=sentence,
                              classification_result='N/A')
    rview.markup_to_pydot(class_result)
    display(Image("tmp.png"))
    print(sentence)
Пример #2
0
 def _view_markup(i):
     class_result = class_results[i]
     rview.markup_to_pydot(class_result)
     display(Image("tmp.png"))
     
     report_html = mark_document_with_html(class_result.context_document, colors = colors, default_color="black")
     
     display(HTML(report_html))